Skip to content

2.0.0

Closed Aug 13, 2022 100% complete

Adds support for calling listeners in PHP 8.1 fibers using react/async async(). And as such raised the minimum PHP version to 8.1.

Async listeners

Before you can use react/async's await(). In a listener, you must change the interface from Listener to AsyncListener. After that, every time that listener is called it will be run inside a fiber and the dispat…

Adds support for calling listeners in PHP 8.1 fibers using react/async async(). And as such raised the minimum PHP version to 8.1.

Async listeners

Before you can use react/async's await(). In a listener, you must change the interface from Listener to AsyncListener. After that, every time that listener is called it will be run inside a fiber and the dispatcher will wait for it to finish. This brings it fully in line with non-non-blocking listeners.

Technically it is possible to use await() in non-async listeners but that will block the rest of the process. Where using async listeners only that listener is awaited in a fiber and will not block the rest of the process.

PSR-14 compatibility bug fix

This release also contains a bug fix (#180) that was caused by not rethrowing any caught and logged exceptions.

This milestone is closed.

No open issues remain. View closed issues or see open milestones in this repository.