Nice crate. In fact, tokio::spawn doesn't start a thread, it starts a *task*. It could all be on the same thread. Tokio *can* decide to pass the task to different threads (work stealing), but in this example, I'd wager it's all ran on the same OS thread.
Thanks for the clarification. Yes, agree - AIUI actual threads are limited to the number you specify, with tokio deciding how to schedule tasks across those.
Mmmmmmm, love me some retro computers, i just stumbled onto this channel
What's not to love?!
Yep. This is right up my alley. Keep em coming. 👍
Plenty more like this on the way :-)
Nice crate.
In fact, tokio::spawn doesn't start a thread, it starts a *task*. It could all be on the same thread. Tokio *can* decide to pass the task to different threads (work stealing), but in this example, I'd wager it's all ran on the same OS thread.
Thanks for the clarification. Yes, agree - AIUI actual threads are limited to the number you specify, with tokio deciding how to schedule tasks across those.
I am becoming a Rusty... More and More..