pub trait Park: Default + Send + Sync + 'static {
// Required methods
fn park(&self);
fn unpark(&self);
}
Expand description
Trait for implementing the parking / unparking threads.
pub trait Park: Default + Send + Sync + 'static {
// Required methods
fn park(&self);
fn unpark(&self);
}
Trait for implementing the parking / unparking threads.