Example #1
0
            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);
            }
Example #2
0
            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
                           ));
            }
Example #3
0
 public void Run(TakeUntil <TSource, TOther> parent)
 {
     Disposable.SetSingle(ref _otherDisposable, parent._other.Subscribe(new OtherObserver(this)));
     Run(parent._source);
 }
Example #4
0
 public _(TakeUntil <TSource, TOther> parent, IObserver <TSource> observer, IDisposable cancel)
     : base(observer, cancel)
 {
     _parent = parent;
 }
Example #5
0
 public void Run(TakeUntil <TSource, TOther> parent)
 {
     _otherDisposable.Disposable = parent._other.Subscribe(new OtherObserver(this));
     Run(parent._source);
 }