14 instance()->setTimeout($cb, $timeout);
30 return instance()->setInterval($cb, $timeout);
42 instance()->clearInterval($intervalId);
151 function tick($block =
false) {
addWriteStream($stream, callable $cb)
Adds a write stream.
removeWriteStream($stream)
Stop watching a stream for writes.
stop()
Stops a running eventloop.
setTimeout(callable $cb, $timeout)
Executes a function after x seconds.
$stream
PHP stream implementation.
clearInterval($intervalId)
Stops a running internval.
removeReadStream($stream)
Stop watching a stream for reads.
addReadStream($stream, callable $cb)
Adds a read stream.
nextTick(callable $cb)
Runs a function immediately at the next iteration of the loop.
instance(Loop $newLoop=null)
Retrieves or sets the global Loop object.
setInterval(callable $cb, $timeout)
Executes a function every x seconds.
tick($block=false)
Executes all pending events.
A simple eventloop implementation.