Skip to content
masterclass Buddy

Rust · Concept

Tokio runtime

Rust asynchronous code uses futures to represent work that may finish later. The async and await keywords let code pause and resume while futures become ready.

Last updated

Syntax

async fn name(...) -> ReturnType { ... }
async { ... }
future.await

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • Future trait
  • async functions
  • async blocks
  • await keyword
  • executor

Source: Futures and the Async Syntax - The Rust Programming Language. Checked 2026-11-03.