Reasons to spawn builtin threads vs tokio blocking tasks? #7878
Unanswered
willhansen
asked this question in
Q&A
Replies: 1 comment 1 reply
-
|
When you use |
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
Uh oh!
There was an error while loading. Please reload this page.
-
Based on my current understanding, a blocking task is basically just a thread that can also yield control with
await(probably not as fast as non-blocking tasks, because it is its own thread), and also haveawaitcalled on its join.I'm only seeing upsides here. If I'm already using non-blocking tasks for stuff, is there any reason to use a built-in thread rather than a blocking task?
Beta Was this translation helpful? Give feedback.
All reactions