Skip to content

Glossary: Rust Beyond the Basics

task

Also written: tasks, tokio::spawn

A future that the runtime runs on its own, like a lightweight thread, started with `tokio::spawn`. Awaiting its `JoinHandle` gives its result.

Where the book teaches it

Related terms

runtimeJoinHandleTokio