|
Event callbacksIf a callback is registered for an event, it will be called when the event becomes active. To associate a callback with event one can pass a callable to either Event::__construct , or Event::set , or one of the factory methods like Event::timer . An event callback should match the following prototype: void callback(
mixed
$fd
= null
,
int
$what
= ?,
mixed
$arg
= null
)
Event::timer expects the callback to match the following prototype: void callback(
mixed
$arg
= null
)
Event::signal expects the callback to match the following prototype: void callback(
int
$signum
= ?,
mixed
$arg
= null
)
|