Re: PHP True Async RFC
| From: | Eugene Sidelnyk | Date: | Sat, 08 Mar 2025 08:59:45 +0000 |
| Subject: | Re: PHP True Async RFC | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-126638@lists.php.net to get a copy of this message | ||
>
> Yes, that is much much nicer! It feel familiar to go:
>
> go file_get_contents($file[$i])
>
> And yes, I realize that would be a fun error in go, but you get the gist.
>
> — Rob
>
Yes, that's the point that we don't bother client code with any of the
async stuff 🙂
If we want to create "async space" for functions to have switching on IO,
only then do we call them like this, and the await'em all with awaitAll 🙂.
>