Learn Tokio by building: 8 progressive assignments from spawning tasks to writing your own runtime!

129 points freddiehaddad 6 comments

A while back I posted about deep diving into the Tokio runtime. To reinforce what I was learning, I started writing assignments for myself -- just a few at first, but the collection has grown into seven self-contained assignments that teach the Tokio runtime, each one building on the last. There's also a bonus eighth assignment where you build a mini
async runtime from scratch -- no Tokio, just std::future::Future, Waker, and Poll.

If you're the kind of person who learns best by doing and wants a more hands-on, structured way to explore Tokio, I think you'll get a lot out of these!

EDIT: I forgot to mention that all the assignments include solutions but try to implement each one yourself before looking at them! :)