PSR for async programming? Promises, coroutines, streams...

62 views
Skip to first unread message

Pablo Largo

unread,
Dec 11, 2020, 8:13:40 AM12/11/20
to PHP Framework Interoperability Group
Hi! Following this conversation from 2015 (I would add to the list frameworks like Swoole): https://groups.google.com/g/php-fig/c/wzQWpLvNSjs/m/B_vH3DQ2BQAJ

Do you guys think it's time to finally do a PSR for promises? I don't think we need a consensus between the main libraries as adapters could be made, but their expertise and debate would be awesome.

I guess this could be a great moment, especially with PHP8's JIT to start making progress and gaining interoperability when developing non-http servers.

Enrico Zimuel

unread,
Dec 14, 2020, 4:53:11 AM12/14/20
to php...@googlegroups.com
Hi Pablo,

I'm also interested in a PSR for Promise and also for Observable, as discussed years ago in the thread that you posted.
I think the needs of these PSRs are more relevant now compared with the past since we have more async PHP applications in the wild.
We need to have two different PSR proposals: one for Promise and another one for Observable.

I can work on a proposal for Promise since I'm rewriting the elasticsearch-php http client and I did some research having the need to find a common pattern for async HTTP.
Anyone else interested?

Regards,
Enrico Zimuel


--
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 php-fig+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/php-fig/0fb0c28f-7c0f-43f7-9017-ae3bba372e19n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages