News for hackers. Stuff that matters.
Re:Whats New in PHP 8.2 by kijin on Monday April 25, 2022 @10:48AM (#31155644)
Fibers don't run concurrently with the main thread. They're like preemptive multitasking, not simultaneous multitasking.

For example, if you have a long-running database query, disk I/O, or some other blocking function, you can't simply send it to the background and do something else while waiting for the result. Network requests are better, but only because the underlying functions support a rudimentary form of async calling.

Re:Whats New in PHP 8.2 by tored on Monday April 25, 2022 @11:36AM (#31156361)
Someone has apparently implemented async library with fibers and stream wrappers.

https://www.reddit.com/r/PHP/comments/u80gyg/true_coroutines...