Trait mz_ore::thread::JoinHandleExt
source · pub trait JoinHandleExt<T> {
// Required methods
fn join_on_drop(self) -> JoinOnDropHandle<T>;
fn unpark_on_drop(self) -> UnparkOnDropHandle<T>;
}
Expand description
Extension methods for JoinHandle
.
Required Methods§
sourcefn join_on_drop(self) -> JoinOnDropHandle<T>
fn join_on_drop(self) -> JoinOnDropHandle<T>
Converts a JoinHandle
into a JoinOnDropHandle
.
sourcefn unpark_on_drop(self) -> UnparkOnDropHandle<T>
fn unpark_on_drop(self) -> UnparkOnDropHandle<T>
Converts a JoinHandle
into an UnparkOnDropHandle
.