TUSST — the Stroop SigilTUSST
journeyforgecampaignadvanced
sign in
‹ advanced path

Async From First Principles

Built up from the poll loop, not down from an attribute macro. You write a Future by hand, build a working block_on with a real Waker, and only then look at what Tokio adds on top.

serves: RPC/API services at high scale7 lessons · ~4.5h
progress0/7
Start track

// lessons

  1. 01

    A Future Is a Poll Function

    Implement Future by hand and see there is no magic in it.

  2. 02

    Nothing Runs Without an Executor

    Prove that an un-awaited future does exactly nothing, and say why that is a feature.

  3. 03

    Build block_on

    Write a real executor: Waker, RawWaker and a park/unpark loop.

  4. 04

    Cooperative Scheduling & Blocking Calls

    Explain why one blocking call stalls an entire runtime thread.

  5. 05

    Cancellation Is a Drop

    Make cleanup correct when a client disconnects mid-request.

  6. 06

    Timeouts & Select

    Race a future against a deadline, and say which side won and what leaked.

  7. 07

    What Tokio Adds

    Map every piece you built to its Tokio equivalent: spawn, JoinHandle, select!, spawn_blocking.

Every exercise compiles and runs in the Forge sandbox — standard library only, no external crates.

TUSST · The Ultimate Stellar Supreme Tutorial

learn rust → master stellar · open-source