Slug: async-lazy-01 · Paired reading: Chapter 13
Prompt
struct Tick<'a> { n: u32, side: &'a Cell<u32> } implementing Future.
Construction must not touch side. First poll increments side and
completes with Ready(()).
The curriculum, drills, tutor, and interviewer mode are for readers of Ace the Rust Interview. The code is printed in the Preface (Companion site access).
Don’t have the book yet? The landing page stays open — purchase unlocks this gym.
advanced · order 151
Slug: async-lazy-01 · Paired reading: Chapter 13
struct Tick<'a> { n: u32, side: &'a Cell<u32> } implementing Future.
Construction must not touch side. First poll increments side and
completes with Ready(()).