Hacker News new | ask | show | jobs
by zowanet 2181 days ago
JavaScript's async features are made possible because of its event loop (Node.js is essentially V8 + libuv).

You can use one of many event loop implementations with PHP, including libuv, if you so wish.

1 comments

Sure. But JavaScript has Promise built in to the language these days. With PHP you'd have to use a third party extension, like swoole, if you want something like that. Or write your own, of course.

But should we need to do this for a 25 year old backend language?