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§
Sourcefn unpark(&self)
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