typeover
rust curriculum

Curriculum Production Rust Async basics exercise 1 · mcq

Async basics

Declare an async function returning i32 with value 42. Pick the idiomatic Rust syntax.

TypeScript reference
Pick the idiomatic Go translation

About this theme

Rust async is explicit: async fn returns a future, .await yields within an executor, and most real async code is runtime-specific. This theme stays runtime-light and focuses on the mental model. Planned exercises: 1. choose async fn. 2. recognise .await. 3. choose Result in async functions. 4. fill an async call. 5. fill an awaited result. 6. write a small async helper signature. 7. compose two awaited operations. 8. translate TS promise code. 9. fix a future that was created but never awaited.