Re: PHP True Async RFC Stage 5

From: Date: Sat, 01 Nov 2025 13:17:04 +0000
Subject: Re: PHP True Async RFC Stage 5
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-129041@lists.php.net to get a copy of this message
Hi Edmond,

could you please clarify these two questions? Thanks.

Am 31.10.25 um 11:59 PM schrieb Dennis Birkholz:
Also I do not really understand why the "cancellation" is an awaitable. If the provided awaitable is itself some infinitely blocking Coroutine (e.g. while (true) {}), how can the scheduler run the actual Coroutine and the "cancellation" awaitable to determine whether the Coroutine should be cancelled or not? As long as there is no multithreading, this does not make sense for me. In addition, what happens if a Coroutine is suspended and is restarted again. Is the cancellation awaitable restarted? Or just continued?
Kind regards Dennis

Thread (71 messages)

« previous php.internals (#129041) next »