Skip to content
Free public beta until December 4, 2026: every course is open, no card needed. After that, the first chapter of each course stays free and full access is a one-time $39 ($19 for up to 100 founding members chosen for helpful feedback). Your progress is kept. How the beta works

async task

A future handed to the runtime to run on its own, like a very light thread.

tokio::spawn turns a future into a task scheduled independently and returns a JoinHandle; many thousands of tasks can share a few worker threads.

Loading interactive…

Examples

  • tokio::spawn(read_station("harbor", 300)) returns a JoinHandle; awaiting it gives a Result, so a task that panics shows up as Err instead of crashing main.

Read the full section →