示例#1
0
        void Complete()
        {
            _current = null;
            isRun    = false;
            Init();

            if (onComplete != null)
            {
                onComplete(isCancelled);
            }
        }
示例#2
0
        public void Next()
        {
            if (_current.futuresCount == 0)
            {
                return;
            }
            var newFuture = new CompositeFuture();

            _compositeFutures.Add(newFuture);
            newFuture.AddListener(CompleteFuture);
            _current = newFuture;
        }
示例#3
0
 void Init()
 {
     _compositeFutures.Add(new CompositeFuture());
     _current = _compositeFutures[0];
     _current.AddListener(CompleteFuture);
 }