示例#1
0
        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);
        }
示例#2
0
文件: Delay.cs 项目: ufcpp/UniRx
 public Delay(DelayObservable <T> parent, IObserver <T> observer, IDisposable cancel) : base(observer, cancel)
 {
     this.parent = parent;
 }