Closed cleoold closed 4 years ago
How can you achieve the same effect as running this code snippet asynchronously?
run it from inside of a cqueues managed coroutine
PS: if I paste it inside the onstream callback in http_server, will it not block future incoming requests?
Yes. http_server sets up a cqueues coroutine for you.
Hello thanks for your library! I just have a question about making http requests, after seeing the following code snippet:
If this code runs standalone, it is blocking right? How can you achieve the same effect as running this code snippet asynchronously?
PS: if I paste it inside the
onstream
callback inhttp_server
, will it not block future incoming requests?