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.
Glossary: Rust Beyond the Basics
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.