void Complete() { _current = null; isRun = false; Init(); if (onComplete != null) { onComplete(isCancelled); } }
public void Next() { if (_current.futuresCount == 0) { return; } var newFuture = new CompositeFuture(); _compositeFutures.Add(newFuture); newFuture.AddListener(CompleteFuture); _current = newFuture; }
void Init() { _compositeFutures.Add(new CompositeFuture()); _current = _compositeFutures[0]; _current.AddListener(CompleteFuture); }