Waker

/ˈweɪ.kər/ · Noun · Development

Definitions

  1. In Rust's async runtime model, a handle provided to a Future when it is polled that the future stores and later uses to signal the executor that it is ready to make progress — the mechanism by which a future says 'poll me again, I have data now.'

    In plain English: A notification handle that a waiting task uses to tell the system 'I'm ready to continue now.'

    Example: "The future stashes the Waker and the I/O driver calls wake() on it when the socket becomes readable."

Related Terms