2 ms·
I do understand the problem, I'm curious if spawn would resolve it. spawn (in the major executors at least) behaves as though it spawns a new thread to poll on
by zamalek 3y ago
I do understand the problem, I'm curious if spawn would resolve it.
spawn (in the major executors at least) behaves as though it spawns a new thread to poll on. Therefore work does get underway even if callsite poll is never called, and the callsite only checks the status of the thread/task.
https://tokio.rs/tokio/tutorial/spawning https://tokio.rs/tokio/tutorial/spawning