Esempio n. 1
0
        public override void OnCompleted()
        {
            Dispose();

            lock (_gate)
            {
                _parent.Done(_index);
            }
        }
Esempio n. 2
0
        public void OnCompleted()
        {
            _self.Dispose();

            lock (_gate)
            {
                _parent.Done(_index);
            }
        }
Esempio n. 3
0
        public override void OnCompleted()
        {
            // Calling Dispose() here would clear the queue prematurely.
            // We only need to dispose the IDisposable of the upstream,
            // which is done by SafeObserver.Dispose(bool).
            base.Dispose(true);

            lock (_gate)
            {
                _parent.Done(_index);
            }
        }