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.awaitIn-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
Future traitasync functionsasync blocksawait keywordexecutor