You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a way to test/benchmark if other libraries in PHP do not work with coroutines either? I use a few other 3rd party extensions that I'm not sure about, so I was hoping there was a way I could write a script with them to determine if they work with coroutines or not.
Are there ways to call the PHP MongoDB library from within a coroutine such as task workers? If yes, could you point me to an example of a http server in swoole that calls a task worker upon each request and waits for the result to send back to the user?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I had a few questions about coroutines I was hoping to get help with:
I believe that the PHP MongoDB library (https://github.com/mongodb/mongo-php-driver) does not work with coroutines and causes them to block. Is that correct?
Is there a way to test/benchmark if other libraries in PHP do not work with coroutines either? I use a few other 3rd party extensions that I'm not sure about, so I was hoping there was a way I could write a script with them to determine if they work with coroutines or not.
Are there ways to call the PHP MongoDB library from within a coroutine such as task workers? If yes, could you point me to an example of a http server in swoole that calls a task worker upon each request and waits for the result to send back to the user?
Thank you for your help.
Beta Was this translation helpful? Give feedback.
All reactions