Benefits of using coroutines #57
Replies: 2 comments
-
Hello Dimitris Probably the change you mentioned can work, but the current way is more readable.
Meantime all the whole logic for handling IO command can be kept in So you can get whole picture about how to handle IO command But anyway, it depends on how target code is written, and interfaces Thanks, |
Beta Was this translation helpful? Give feedback.
-
Hi Ming. Dimitris |
Beta Was this translation helpful? Give feedback.
-
Hi all!
I have a question: What is the real benefit we gain from using coroutines?
I mean if
handle_io_async
was just preparing the requests and return, andthen we just (almost) move the code bellow
co_await__suspend_always
intotgt_io_done
wouldn't we have the same result?Thanks
Beta Was this translation helpful? Give feedback.
All reactions