Skip to content

Glossary: Rust Beyond the Basics

async fn

Also written: async, async function, asynchronous

A function that does not run when called but returns a future. The work happens only when the future is awaited, letting one thread handle many waiting jobs.

Where the book teaches it

Related terms

future.awaitruntime