예제 #1
0
        public override void OnCompleted()
        {
            Dispose();

            lock (_gate)
            {
                _parent.Done(_index);
            }
        }
예제 #2
0
        public void OnCompleted()
        {
            _self.Dispose();

            lock (_gate)
            {
                _parent.Done(_index);
            }
        }
예제 #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);
            }
        }