EvLoop::signal

(PECL ev >= 0.2.0)

EvLoop::signalCreates EvSignal watcher object associated with the current event loop instance

说明

final public EvLoop::signal ( int $signum , callable $callback [, mixed $data = NULL [, int $priority = 0 ]] ) : EvSignal

Creates EvSignal watcher object associated with the current event loop instance

参数

All parameters have the same meaning as for EvSignal::__construct()

返回值

Returns EvSignal object on success

参见

相关文章
php hashable determines whether an object is equal to the current instancephp set creates a new set using values in either the current instance or in another set but not in bothphp eventbufferevent closes file descriptor associated with the current buffer eventphp evidle creates instance of a stopped evidle watcher objectphp evloop creates evcheck object associated with the current event loop instancephp evloop creates evchild object associated with the current event loopphp evloop constructs the event loop objectphp evloop returns or creates the default event loopphp evloop creates an instance of evembed watcher associated with the current evloop objectphp evloop creates evfork watcher object associated with the current event loop instancephp evloop creates evidle watcher object associated with the current event loop instancephp evloop create evio watcher object associated with the current event loop instancephp evloop returns the current event loop time php evloop creates evperiodic watcher object associated with the current event loop instancephp evloop creates evprepare watcher object associated with the current event loop instancephp evloop creates evsignal watcher object associated with the current event loop instancephp evloop creates evstat watcher object associated with the current event loop instancephp evloop stops the event loopphp evloop creates evtimer watcher object associated with the current event loop instancephp evtimer creates evtimer stopped watcher object
关注编程学问公众号