EvSignal::createStopped
PHP function
Edit on GitHub ✎
(PECL ev >= 0.2.0)
Create stopped EvSignal watcher object
Description
EvSignal::createStopped(int $signum, callable $callback, mixed $data = null, int $priority = 0): EvSignal
Create stopped EvSignal watcher object. Unlike EvSignal::__construct, this method doesn't start the watcher automatically.
Parameters
signumSignal number. See constants exported by pcntl extension. See also
signal(7)man page.callbackSee Watcher callbacks.
dataCustom data associated with the watcher.
priority
Return Values
Returns EvSignal object on success.
See Also
EvWatcher::startEvSignal::__construct