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