コード例 #1
0
ファイル: EmitQueue.php プロジェクト: mrxotey/icicle
 /**
  * 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
ファイル: EmitQueue.php プロジェクト: Nik-ADA/icicle
 /**
  * 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());
     }
 }