Slug: async-blockon-01 · Paired reading: Chapter 13
Prompt
ThreadWaker + pub fn block_on<F: Future>(fut: F) -> F::Output as in
the manuscript: pin, poll, park until wake. Test with async { 2 + 2 }.
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 155
Slug: async-blockon-01 · Paired reading: Chapter 13
ThreadWaker + pub fn block_on<F: Future>(fut: F) -> F::Output as in
the manuscript: pin, poll, park until wake. Test with async { 2 + 2 }.