Lesson 34 of 50
rustAsync Await and Futures
15 minutes
Course progress68%
Async Await and Futures
A Future is a value that may not have completed yet. The await keyword drives it to completion.
use std::future::Future;
fn simple_future() -> impl Future<Output = i32> {
async { }
}
() {
= ().;
(\