public FuncTask ContinueWith(CancellableContinuation.Func next, CancellationToken cancellationToken = null, TaskScheduler scheduler = null) { if (next == null) { throw new ArgumentNullException("next"); } return(FuncTask.BuildContinuation(this, token => next(this, token), cancellationToken, scheduler)); }
public FuncTask ContinueWith(BasicContinuation.Func next, TaskScheduler scheduler = null) { if (next == null) { throw new ArgumentNullException("next"); } return(FuncTask.BuildContinuation(this, token => next(this), CancellationToken.None, scheduler)); }