Exemple #1
0
 private IWaitable Add(IWaitable waitable)
 {
     waitables.Add(waitable);
     waitable.Finally(() => waitables.Remove(waitable));
     return(waitable);
 }
Exemple #2
0
 public void OnCompleted(Action continuation)
 {
     waitable.Finally(continuation);
 }