public async Task TestResult() { var observable = new DelayObservable <int>(1); int result = await observable.WaitFirst(); Assert.AreEqual(1, result); Assert.AreEqual(true, observable.Disposable.IsDisposed); }
public Delay(DelayObservable <T> parent, IObserver <T> observer, IDisposable cancel) : base(observer, cancel) { this.parent = parent; }