Skip to content

Why is tokio multi threaded runtime so much slower than current thread? #7091

Answered by Darksonn
bennetthardwick asked this question in Q&A
Discussion options

You must be logged in to vote

The main thread is not a worker thread when using the multi-thread runtime. Wrap the body in tokio::spawn to actually execute the code on a worker thread.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by bennetthardwick
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants