public static bool Await(this ICompletable source, TimeSpan timeout) { LatchedCompletableSubscriber lcs = new LatchedCompletableSubscriber(); source.Subscribe(lcs); return(lcs.Await(timeout)); }
public static void Await(this ICompletable source) { LatchedCompletableSubscriber lcs = new LatchedCompletableSubscriber(); source.Subscribe(lcs); lcs.Await(); }