Hi.

Following the auge of async libraries and introduction of Fiber at the end 
of the year, its very weird no PSR regarding async implementation has been 
actively discussed.

In my humble opinion, a PSR-21 for async libraries, specifically the Event 
Loop and Promises, would allow async libraries interoperability regardless 
of how these handle the asynchronous execution internally themselves. For 
example, a library asking for PSR-21 would allow the project using that 
library to swap Amp, ReactPHP, Swoole, or anything else.

Using the same Event Loop, packages would not conflict over the Loop 
execution, while a common Promise interface wouldn't lock the API inside 
async contexts.

-- 
You received this message because you are subscribed to the Google Groups "PHP 
Framework Interoperability Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/php-fig/b021894a-faf3-421b-9c73-1389c04442b8n%40googlegroups.com.

Reply via email to