tokio_executor::park

Trait 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§