Correct way to handle async IO inside register_callback
within Tokio runtime
#1362
Unanswered
0xForerunner
asked this question in
Q&A
Replies: 2 comments 4 replies
-
you can block for a reasonable amount of time within the callback, we can consider making the callback accept an async closure too. |
Beta Was this translation helpful? Give feedback.
4 replies
-
For future reference: Here's a hacky solution I found for this issue: |
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
-
I would like to send http requests during the callback. Should I use spawn_blocking for the entire pipeline? Or is it okay to having blocking io within the callback?
Beta Was this translation helpful? Give feedback.
All reactions