/** * Decrements the number of listening iterators. Marks the queue as disposed if the count reaches 0. */ public function decrement() { if (0 >= --$this->listeners && null !== $this->observable) { $this->observable->dispose(new DisposedException('All subscribers stopped listening for emitted values.')); } }
/** * Decrements the number of listening iterators. Marks the queue as disposed if the count reaches 0. */ public function decrement() { if (0 >= --$this->listeners && null !== $this->observable) { $this->observable->dispose(new AutoDisposedException()); } }