コード例 #1
0
ファイル: UvLoop.php プロジェクト: koolkode/async
 /**
  * {@inheritdoc}
  */
 public function stop()
 {
     if ($this->dispatching) {
         \uv_stop($this->loop);
     }
     parent::stop();
 }
コード例 #2
0
ファイル: UvReactor.php プロジェクト: nimmen/amp
 /**
  * {@inheritDoc}
  */
 public function stop()
 {
     if ($this->state !== self::STOPPED) {
         \uv_stop($this->loop);
         $this->state = self::STOPPING;
     } else {
         throw new \LogicException("Cannot stop(); event reactor not currently active");
     }
 }