Trait tokio_executor::park::Unpark

source ·
pub trait Unpark: Sync + Send + 'static {
    // Required method
    fn unpark(&self);
}
Expand description

Unblock a thread blocked by the associated Park instance.

See module documentation for more details.

Required Methods§

source

fn unpark(&self)

Unblock a thread that is blocked by the associated Park handle.

Calling unpark atomically makes available the unpark token, if it is not already available.

See module documentation for more details.

§Panics

This function should not panic, but ultimately, panics are left as an implementation detail. Refer to the documentation for the specific Unpark implementation

Trait Implementations§

source§

impl Unpark for Box<dyn Unpark>

source§

fn unpark(&self)

Unblock a thread that is blocked by the associated Park handle. Read more

Implementations on Foreign Types§

source§

impl Unpark for Box<dyn Unpark>

source§

fn unpark(&self)

source§

impl Unpark for Arc<dyn Unpark>

source§

fn unpark(&self)

Implementors§