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:----ssgPBV0vGQwdvu7ySejn7PULjZIoVUnWCofegHWEkcoOTtViIWA4a43iUal4Hl4njnFotLYHjksEvZFPzvekqRh5WsG7fMlD9lrCDMo+cxe7WWfyW5/D4xb6xKQ98diK4kNrob1Dtp5OZKNtY1J6RWVwsxx75lcYCzuqonc33ryyzgCm+lRqPW5I9/vN9THCrJ9+GnrkWVRHFWSDL0cwGpfcQM6WP4hZcJ7w9CbSIX2zdNoDEr2IipF2on38uC9lvp1ddQC3kLsoXUfvoKU0JKNkO6dWY00rESeKWJBE+bJftjKnpU+CHeBeC94wQ43SvQziLglT9UnEc27kyaYJIgTAObuK9uOZyxOCgFFUqLtyRGK6avIeDl7Q9GDi8Xu0PBzi0PbWmlMxEjRV5EWkncuqxOrw3fDw+KsCfkX2Na5ypwa0F/ZsudSpRBiOAEIIOo2aYgWfgoDBDRkR7kCNZBd3xkv9WxsjekhKsSiozYn2xFXM5htiStTQMsIaZTfWFbcro5xKbsvDWyrfVOfvND8nALoQUztkwAv5pMz7RKZnXaPuKUqkHt5Ndz+pWtmVLvMM0v7P6Cenyg8gVL4mqZBHOzQ3y4Y/bt9UuvA7hX6R6TMk9iciftKcO28CIcmDPgBCY4nBKY2dKy5wuY9IZwh9VK66N3d/MsjHVzX83Xg=----ATTACHMENT:----NzQ0ODQzMjUzMTI3NDA1OCA3Njk4NDQ5NTQ1NjQ4NzY1IDgxMjQxNTc4NTM5NzI5MzY=