/** * {@inheritdoc} */ public function stop() { if ($this->dispatching) { \uv_stop($this->loop); } parent::stop(); }
/** * {@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"); } }