[][src]Trait tokio::prelude::task::Unpark

pub trait Unpark: Send + Sync {
    fn unpark(&self);
}
Deprecated:

recommended to use Notify instead

A trait which represents a sink of notifications that a future is ready to make progress.

This trait is provided as an argument to the Spawn::poll_future and Spawn::poll_stream functions. It's transitively used as part of the Task::unpark method to internally deliver notifications of readiness of a future to move forward.

Required methods

fn unpark(&self)

Deprecated:

recommended to use Notify instead

Indicates that an associated future and/or task are ready to make progress.

Typically this means that the receiver of the notification should arrange for the future to get poll'd in a prompt fashion.

Loading content...

Implementors

Loading content...