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:----ITDuSeV3G2mN4zfT+dXzv4R7R441sylJTA+gZtvFLmUJeGzduRi7q4nYAKtOTMGbx2EhEE3RsM2Sh5bmMhtODWng8TWCc50BSLZqLNxiXyb595jIdgO27+PgV+9YChaJ0kPlz1IUO+Pe3aVH4i5e/y5baOm2jMhqu49MGDelWuJugoZyGH26G0nbAEbHpektSW1FTgZvif2Kp/g9rErrEltos026ZLPvvuthhCtYgMdHp1rctTSJ8CnQgbo6qIcWBruI6OsYO4yjGXIUnBXKoDDpqOk3US/KP1b6Lc4z//LSwN/64t9dwbYmmmsjsMtPS1F1Emhn27Yp6S7cCeREvR9Kza5Ay2qC5O2C4bv+bucIWUMsficghEzz+g2G6UelFVTamJvyntS+lcg8TK8xFKCM0JRVh8XU6XhqTRk2LgH4lwXlJdFZ3tEtF0S4lN5A7BLHUoThHxsK48Y8sr+rRaQEra02aGoI4NwaCDqRU6/sVDyGqcQCDqFo/CBaBeyIKtZ6LGy/fbWr8mQpkVSNWdDdsco3xVEu4qelt+7j0gwiW5WoVLTwHKq2MK80HWoTR3rfgXVgstn8ARi5+P2E8Iq2LtSu3W9b88NC064JOd81isa4NkRVI2hm81b5G//z1z1EpHAEiqLAbimXJ6fWXW09Q6N04z7xVPw/lfXeihY=----ATTACHMENT:----MTA5MjQ1Mjg3NzQ2Njg1OCA1NjIzMzQzMTQ4ODEzNzcyIDU3MjM1NTE0NTA2NTk3ODU=