Trait agnostic_lite::Detach
source · pub trait Detach: Sized {
// Provided method
fn detach(self) { ... }
}Expand description
Detaches the task related to the join handle to let it keep running in the background.
Provided Methods§
Object Safety§
This trait is not object safe.
Implementations on Foreign Types§
impl<F> Detach for JoinHandle<F>
Available on crate feature
async-std only.impl<T> Detach for JoinHandle<T>
impl<T> Detach for JoinHandle<T>
Available on crate feature
tokio only.Implementors§
impl<O> Detach for AsyncStdAfterHandle<O>where
O: 'static,
Available on crate feature
async-std only.impl<O> Detach for SmolAfterHandle<O>where
O: 'static,
Available on crate feature
smol only.impl<O> Detach for TokioAfterHandle<O>where
O: 'static,
Available on crate feature
tokio only.impl<O> Detach for WasmAfterHandle<O>where
O: 'static,
Available on crate feature
wasm only.impl<T> Detach for WasmJoinHandle<T>
Available on crate feature
wasm only.