/** * {@inheritdoc} * * @throws \Interop\Async\Loop\UnsupportedFeatureException If the pcntl extension is not available. * @throws \RuntimeException If creating the backend signal handler fails. */ public function onSignal($signo, callable $callback, $data = null) { if (!$this->signalHandling) { throw new UnsupportedFeatureException("Signal handling requires the pcntl extension"); } return parent::onSignal($signo, $callback, $data); }
/** * {@inheritdoc} */ public function cancel($watcherIdentifier) { parent::cancel($watcherIdentifier); unset($this->events[$watcherIdentifier]); }