Skip to content

Glossary: Rust Beyond the Basics

async block

Also written: async move block, async move

A piece of code written `async { ... }` that makes a future. `async move` takes ownership of the variables it uses, like a `move` closure, which `tokio::spawn` needs.

Where the book teaches it

Related terms

futuremove