Re: 回复: [PHP-DEV] Is it possible to add asynchronous loop call function ?

From: Date: Thu, 01 Jan 1970 00:00:00 +0000
Subject: Re: 回复: [PHP-DEV] Is it possible to add asynchronous loop call function ?
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-121797@lists.php.net to get a copy of this message
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.

« previous php.internals (#121797) next »