using php functions block event loop ? #5085
foremtehan
started this conversation in
General
Replies: 1 comment
-
Yes, Laravel octane does not support coroutines currently and it will block whole event if use php functions like sleep or file_get_contents in the laravel octane. You can try to use swoft, easyswoole, hyperf, imi framework if you want to use coroutine. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm a laravel octane user. I want to know if I use php functions like
sleep
orfile_get_contents
etc..., do these functions block the whole event loop, even if I use them inside the swoolego
function orOctane::concurrently
? If the answer is yes, how can I find the equivalent of every blocking PHP function in Swoole?Beta Was this translation helpful? Give feedback.
All reactions