Mehdi Akiki

Posts tagged "futures"

  • Published on
    A future can miss a wake between checking readiness and storing its Waker. Register first, recheck state, and let AtomicWaker coordinate concurrent registration with wake calls.
  • Published on

    Investigation · Part 1 of 3 · Async Rust under the hood

    How Async Rust Works Under the Hood: Five Symptoms, One Model

    I started from a small tokio service and hit five classic async Rust problems: a huge future, a future that is not Send, one blocking call that stalls everything, a select! loop that loses data, and a shutdown that hangs. One small model of the compiler and the runtime explains all five.