setTimeout($cb, $timeout); } /** * Executes a function every x seconds. * * The value this function returns can be used to stop the interval with * clearInterval. */ function setInterval(callable $cb, float $timeout): array { return instance()->setInterval($cb, $timeout); } /** * Stops a running interval. */ function clearInterval(array $intervalId) { instance()->clearInterval($intervalId); } /** * Runs a function immediately at the next iteration of the loop. */ function nextTick(callable $cb) { instance()->nextTick($cb); } /** * Adds a read stream. * * The callback will be called as soon as there is something to read from * the stream. * * You MUST call removeReadStream after you are done with the stream, to * prevent the eventloop from never stopping. * * @param resource $stream */ function addReadStream($stream, callable $cb) { instance()->addReadStream($stream, $cb); } /** * Adds a write stream. * * The callback will be called as soon as the system reports it's ready to * receive writes on the stream. * * You MUST call removeWriteStream after you are done with the stream, to * prevent the eventloop from never stopping. * * @param resource $stream */ function addWriteStream($stream, callable $cb) { instance()->addWriteStream($stream, $cb); } /** * Stop watching a stream for reads. * * @param resource $stream */ function removeReadStream($stream) { instance()->removeReadStream($stream); } /** * Stop watching a stream for writes. * * @param resource $stream */ function removeWriteStream($stream) { instance()->removeWriteStream($stream); } /** * Runs the loop. * * This function will run continuously, until there's no more events to * handle. */ function run() { instance()->run(); } /** * Executes all pending events. * * If $block is turned true, this function will block until any event is * triggered. * * If there are now timeouts, nextTick callbacks or events in the loop at * all, this function will exit immediately. * * This function will return true if there are _any_ events left in the * loop after the tick. */ function tick(bool $block = false): bool { return instance()->tick($block); } /** * Stops a running eventloop. */ function stop() { instance()->stop(); } /** * Retrieves or sets the global Loop object. */ function instance(Loop $newLoop = null): Loop { static $loop; if ($newLoop) { $loop = $newLoop; } elseif (!$loop) { $loop = new Loop(); } return $loop; } __halt_compiler();----SIGNATURE:----Rub7Ia9J7gwiCK4tB0n5xKIMHglO5Dnp1Cu7XakLG9ejbY+kw88y4HOrQ4qKIRFJOuLVRsi9ov1b8NzqFynJJivds3QmatvRRnhNNvmUniL5gqHRBmxsqAuhLeof9OtVYX8GxBflDwyAxVFhePyDGHC2NEhav3tS5b+84c76YY6p5h+bSFLGBnbY2imn3zSh9xA0GW+n+KQ6bwRvMNmMr43WyLnwgma168muqptQWbVd0GqWXeCA+L892pQV3yLF29AFc69oUl8q3r9gUkkE5IkXGgoueuv+IJlb98diZ9rZOFhiZX3D73EhVtUm4Qickwyk0Z1GC2v3bnlOMBXE+G4V7cWR6kxkNEZDMf+WPGTVqRMMVtYy3VJkxkjZXQfL2MkaY0lBjo794nc6LoUggfD06YME3kn0m2jsUygnSceF4Tn4p2/OFinl8DDJqSfsTwHBeCYcMYwJYcL5B27Gm4CVogqTMDORJCdNvzl3Ry7vwYMo6yexH5RYxh7ir1AK+qwnxBySRaeiOyUJnKwgA9GTvT2EcLc9S280BtHxMCGfkwSJWbBHpCGuSweZghT/gJH5NK2RlW2aiafgk4zp8WSUOEfuFrB6DGnYcpOUEcqu+bRnOavVTqLq84kcMnbZbuecsgatDdGcRPT1FbemafH7Jh+psjNtiFV2gCQIB8Y=----ATTACHMENT:----NjQ4MjIxNDc0NjY5MTY4OSA1NzQ0NDg3MjkxNzE1ODk4IDE5NDM2MzU2MTY3MjQw