Skip to content

Glossary: Rust Beyond the Basics

JoinHandle

Also written: join, handle.join()

What `thread::spawn` or `tokio::spawn` returns. Its `join` (or awaiting it, for tasks) waits for the work to finish and gives back a `Result` with the return value.

Where the book teaches it

Related terms

threadtask