I really like this idea, non-blocking IO via asynchronous operations in PHP would be amazing.

I am running into an issue right now where I want to listen to several different socket streams for data. One example of this would be: Open socket AWait for dataClose socket AOpen socket BWait for dataClose socket B This would be so much easier if I could just listen on both in a non-IO blocking fashion. I would find this immensely useful.

~Judah

On Sun, Dec 22, 2019 at 8:59 pm, Aran Reeks <cdtre...@gmail.com> wrote:
Hi Internals,

Since the start of PHP 7, we've seen some amazing performance improvement
version by version as a result of core updates.

Now some of the biggest wins have been implemented (with JIT due for PHP
8), I'd personally love to see support for Async / Await introduced in
PHP's as a core language feature too.

Being able to perform tasks in parallel such as reading or writing to DB, cache, queues... Would be a massive advantage and the performance gains
from it could be really exciting!

Looking at how Hack has implemented support, this seems like it could be a
great start for a RFC, what does everyone else think?

Here's a link to Hack's implementation for reference:
<https://docs.hhvm.com/hack/asynchronous-operations/some-basics>

Thoughts welcome from everyone.

Cheers,
Aran

Reply via email to