Exemple #1
0
 public void OnComplete(IAsyncCompletion callback)
 {
     if (task == null)
     {
         callback.Step();
     }
     else
     {
         task.OnComplete(callback);
     }
 }
Exemple #2
0
 public void OnCompleted(Action continuation)
 {
     if (t.IsCompleted)
     {
         continuation();
     }
     else
     {
         t.OnComplete(new AwaitCompletion(continuation));
     }
 }