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:----LV0S1KcUDapiiLnYHKv1E9o74DzshaBn0GrGsgx7rMJHl2SMy/IDGRm2XTBzCKyo7eVPV1iJD9eCGR/bGYXuH9FL1P1RoJvDbcCHa/eaiNiSBP3VvzxciQtAgiMnUWdOIgUsTfQolyAAJu/aXpAt9ggBVC1rhN4kUi88fH10/FnV9+2+FPBn3IRv0PLl/s9ZuUTvMA7dKQJyrE2ibJ7Wdqc8Ova628FQ6ffv0MiFg2Ki58mJb9HgXJBZq2l3pYUhjQd763xKSNUS2pZXtdc2tIlnN7o87bPvqzPxCWNH+/eSx91oMLh+8NVZuNFa/DvW2obe0wD/iJIL6f+vNIEHO04paAD/2T+XQNK4rliLNx9z91AgVe6esGVxAVz/vNzpwSwZY0sJ0E1QbnCevfiv4XfD06/butwZg1GLjBTwlp6H4jOgEPHohlYprT2Q9YyZZuoh4rQfpc5hH/gIZgmb8sOa8xW0h+LDc6yIlA6Uz2mRIW5jwU/vOZfHb17i82Kkpr4O2oNf7ciFkLmnw4EnKeTTHG74XbkzYMY4j+/WGZ/tlSgof6Y/Wi2F5ve2mExHSS3d2wQmn1476iU6kv7c4t9FpG0LNs1pBpQDv1/2tH7Fn9bZZkGhHWDJyaN2Wxf8qh9Pzz05a+DCSB+wmjyQxQT8LWUF5S3hx2ol1WCA3o8=----ATTACHMENT:----NjY4NTU3MTQ5MzE5NTU1NSAyNzEzNTEyODIyNzk1NTg0IDk4MjA5MzE4OTAzNzM5MzA=