public IDisposable Run(TakeUntil <TSource, TOther> parent) { Disposable.SetSingle(ref _otherDisposable, parent._other.Subscribe(new OtherObserver(this))); Disposable.SetSingle(ref _mainDisposable, parent._source.Subscribe(this)); return(this); }
public IDisposable Run(TakeUntil <TSource, TOther> parent) { var sourceObserver = new SourceObserver(this); var otherObserver = new OtherObserver(this, sourceObserver); // COMPAT - Order of Subscribe calls per v1.0.10621 var otherSubscription = parent._other.SubscribeSafe(otherObserver); otherObserver.Disposable = otherSubscription; var sourceSubscription = parent._source.SubscribeSafe(sourceObserver); return(StableCompositeDisposable.Create( otherSubscription, sourceSubscription )); }
public void Run(TakeUntil <TSource, TOther> parent) { Disposable.SetSingle(ref _otherDisposable, parent._other.Subscribe(new OtherObserver(this))); Run(parent._source); }
public _(TakeUntil <TSource, TOther> parent, IObserver <TSource> observer, IDisposable cancel) : base(observer, cancel) { _parent = parent; }
public void Run(TakeUntil <TSource, TOther> parent) { _otherDisposable.Disposable = parent._other.Subscribe(new OtherObserver(this)); Run(parent._source); }