Trait futures::task::Wake [] [src]

pub trait Wake: Send + Sync {
    fn wake(arc_self: &Arc<Self>);
}

A way of waking up a specific task.

Any task executor must provide a way of signaling that a task it owns is ready to be polled again. Executors do so by implementing this trait.

Note that, rather than working directly with Wake trait objects, this library instead uses a custom Waker to allow for customization of memory management.

Required Methods

Indicates that the associated task is ready to make progress and should be polled.

Executors generally maintain a queue of "ready" tasks; wake should place the associated task onto this queue.

Panics

Implementations should avoid panicking, but clients should also be prepared for panics.

Implementors