Пример #1
0
 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));
 }
Пример #2
0
 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));
 }