std :: async::future
Struct std::WakerSlot
struct WakerSlot {
struct Waker w;
int set;
}One registered waker (Rust's AtomicWaker): where a single waiting future leaves its waker for whoever completes it. Not locked by itself; the structure that holds it (a channel, a task) guards it.
Fields
Methods
Wake and release the held waker. Returns 1 if there was one.
Release it without waking.
clear(): a slot owns the waker it holds