Replies: 1 comment 1 reply
-
You should use async timer (for example, loop->runAfter(3, {...})) instead of the sleep function. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm running a simple test web server, and it seems that HTTP requests are blocking each other. That is, I added a loop to the asyncHandleHttpRequest function with a 3 second sleep in one of my controllers. Requests to a different controller wait until the call to asyncHandleHttpRequest in the first controller returns.
Am I misunderstanding how this is supposed to work or how async works in general?
Beta Was this translation helpful? Give feedback.
All reactions