Learning PHP 8.1 Fibers using Tests
– link.medium.com - submitted by Roberto Gallea
PHP 8.1 introduced the new Fiber class, which allows running coroutines inside your script, i.e. two functions executing simultaneously. Let’s see how to use them by using some examples. These examples are implemented as PHPUnit tests which made simple assertions.
Read more [link.medium.com]