Intermediate Rust
Q45 / 100

What is async/await in Rust?

Correct! Well done.

Incorrect.

The correct answer is B) A zero-cost asynchronous programming model where async functions return futures, driven by an executor (tokio, async-std)

B

Correct Answer

A zero-cost asynchronous programming model where async functions return futures, driven by an executor (tokio, async-std)

Explanation

async fn fetch() -> Result<...> { let resp = client.get(url).await?; } Futures are lazy state machines. Executors like tokio::main drive them.

Progress
45/100