Skip to content

Debug data for promises #551

Answered by SimonFrings
EligiusSantori asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @EligiusSantori, I can understand that this makes working with promises, especially when it comes to debugging, somewhat more complex. This is one of the reasons why we released v4 of our reactphp/asnyc package, so you can simply use async() and await() on PHP 8.1+ without caring too much about promises. If you're using a PHP version below 8.1, you can also use coroutines, which work in a similar way. Additionally, the more we approach the future of ReactPHP (ReactPHP v3 & v4), the less you have to deal with promises in general.

With this all said, I think it would make more sense to invest the time to move towards a ReactPHP v3/v4, as promises will move more and more into the backgro…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@EligiusSantori
Comment options

@EligiusSantori
Comment options

Answer selected by clue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants