whoami7 - Manager
:
/
home
/
kckglobal
/
www
/
portal
/
vendor
/
azjezz
/
psl
/
src
/
Psl
/
Async
/
Upload File:
files >> /home/kckglobal/www/portal/vendor/azjezz/psl/src/Psl/Async/later.php
<?php declare(strict_types=1); namespace Psl\Async; use Revolt\EventLoop; /** * Reschedule the work of an async function until some other time in the future. * * The common use case for this is if your async function actually has to wait for some blocking call, * you can tell other Awaitables in the async scheduler that they can work while this one waits for * the blocking call to finish (e.g., maybe in a polling situation or something). */ function later(): void { $suspension = EventLoop::getSuspension(); EventLoop::defer(static fn () => $suspension->resume()); $suspension->suspend(); }
Copyright ©2021 || Defacer Indonesia