Hey.
For a long time now, I have been using nodejs and its async methods. I am even working on bridging nodejs and PHP via a native addon…but thats more complex for another thread.
But, as I used nodejs, I enjoyed of being able to just push a callback into the event loop, so I could continue my code, while a heavier operation is sent to the background.
Will PHP ever have this? That would certainly be very interesting to have, the option to just push away a bigger task.
Kind regards, Ingwie.
Hey.
For a long time now, I have been using nodejs and its async methods. I am even working on bridging nodejs and PHP via a native addon…but thats more complex for another thread.
But, as I used nodejs, I enjoyed of being able to just push a callback into the event loop, so I could continue my code, while a heavier operation is sent to the background.Will PHP ever have this? That would certainly be very interesting to have, the option to just push away a bigger task.
http://docs.php.net/ev
http://docs.php.net/event
http://reactphp.org/
--
Alexey Zakhlestin
CTO at Grids.by/you
https://github.com/indeyets
PGP key: http://indeyets.ru/alexey.zakhlestin.pgp.asc