Skip to content

Async practice problems in Rust

Difficulty:
Category & tags Filters active
Category:
Tag:

Showing 20 of 20

Title Difficulty
A logical-time reactor: timers without a clock Hard
Async recursion, async closures, and streams Hard
block_on: poll a future to completion Easy
Cancelling a future by dropping it Medium
Cancel safety, blocking, and locks across .await Hard
Capstone: an async executor with a logical-time reactor Hard
Countdown futures and the shape of Pending Easy
Create, drop and run futures Easy
Fairness and starvation in your scheduler Medium
Hand-compile an async fn into a state machine Hard
Join two futures and keep both results Medium
poll_fn: a future from a closure Easy
Queue another poll with Wake Medium
Race two futures with a defined polling order Medium
RawWaker and RawWakerVTable: building a Waker with unsafe Hard
Spawning, JoinHandle, and getting values back out Hard
Structural pinning and safe pin projection by hand Hard
The Future trait: Output, Poll, and your first hand-written future Easy
The minimal single-threaded executor Hard
Unpin in practice: making Pin<&mut Self> usable without unsafe Medium