示例#1
0
 /**
  * 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.'));
     }
 }
示例#2
0
 /**
  * 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());
     }
 }