3 ms·
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
by zowanet 6y 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.
- ragnese 6y agoSure. 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?