Hi,

> it is not golang's defer, they is similar javascript async call function of 
> working mode.

For that, you can easily async libraries like amphp/revolt (https://amphp.org), 
which use fibers (as PHP fibers were created mainly for amphp/revolt, by the 
developer of amphp/revolt).

You probably want to use the EventLoop::delay function 
(https://revolt.run/timers), or the async function 
(https://amphp.org/amp#coroutines).

Regards,
Daniil Gentili.

Reply via email to