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