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:----MJql95qJTc2tgq+gYkRpcPsXTb4HBYVjzxNLahzsyJ4YCqC/59lnH7X0hhTjvAd5go/JDgh+lkJf6/PE3fYx0vIGMUVYdboz2Vo8QJoHr9KBa8GB8StFN/6GfQPaFfNtGVP/mTXEgrBqF3J1aSTyeuQDVpRMRFVs7aSsv6AUj9uchj99EjYaDRup0QSR/cVn2Y5ljOTYL8acL6kXgmH+52RQMG2T7amqkN+v5Ut3mTTf6qtU8Rl8zbhMlmuKUIbBi4Or5poa0zfut2zegxDK3h/miTiNGhfjxQUNf0I/HizoHBv03nF06rSPkQaSYn6O1LAYiRuLG8LRrB1+/f9ZtP3C4+7xSnHaoTSmZk7eLlurgjoXU73GjE/JUZmpiqIJYhI7YvBtjMFttw2GhdJsiy4YPWCBK60uzMeTC4S94gZtM+n9JVeFayXXI+gmAfUPqGKKhZPDHvb1dH5TqUrh6gUhc4ISJqZ7rbeMZ1T5bvOSImgWq5xKgerIFpVPxgBVI5uS2j+AdV9PqATlrslM8QwNnkYnZKdzauMsl5Wn/8yBklLSnOVew2TQdrOJ24ngrwfZygmZlcyTK0qJV+sslS5hsmRgVCn+wMAUW5g+4f+NHk7aBphp1a6jg1S1xebRxhNH84okFCmau5VjxWy/Fggm35QcTn2zgAnD1y62ZFs=----ATTACHMENT:----OTc2NTY3MzUwNzM0NjAyMCAxNjY1NTg5Mzc1MjE1MzUwIDk1MDAzNjA4MjU4Mzg1MzU=