public IDisposable Run(SkipUntil <TSource, TOther> parent) { Disposable.TrySetSingle(ref _otherDisposable, parent._other.Subscribe(new OtherObserver(this))); Disposable.TrySetSingle(ref _mainDisposable, parent._source.Subscribe(this)); return(this); }
public IDisposable Run(SkipUntil <TSource, TOther> parent) { var sourceObserver = new SourceObserver(this); var otherObserver = new OtherObserver(this, sourceObserver); var otherSubscription = parent._other.SubscribeSafe(otherObserver); var sourceSubscription = parent._source.SubscribeSafe(sourceObserver); sourceObserver.Disposable = sourceSubscription; otherObserver.Disposable = otherSubscription; return(StableCompositeDisposable.Create( sourceSubscription, otherSubscription )); }
public void Run(SkipUntil <TSource, TOther> parent) { Disposable.TrySetSingle(ref _otherDisposable, parent._other.Subscribe(new OtherObserver(this))); Run(parent._source); }
public void Run(SkipUntil <TSource, TOther> parent) { _otherDisposable.Disposable = parent._other.Subscribe(new OtherObserver(this)); Run(parent._source); }
public _(SkipUntil <TSource, TOther> parent, IObserver <TSource> observer, IDisposable cancel) : base(observer, cancel) { _parent = parent; }