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§

source

fn detach(self)

Detaches the task to let it keep running in the background.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<F> Detach for JoinHandle<F>

Available on crate feature async-std only.
source§

impl<T> Detach for JoinHandle<T>

source§

impl<T> Detach for Task<T>

Available on crate feature smol only.
source§

impl<T> Detach for JoinHandle<T>

Available on crate feature tokio only.

Implementors§

source§

impl<O> Detach for AsyncStdAfterHandle<O>
where O: 'static,

Available on crate feature async-std only.
source§

impl<O> Detach for SmolAfterHandle<O>
where O: 'static,

Available on crate feature smol only.
source§

impl<O> Detach for TokioAfterHandle<O>
where O: 'static,

Available on crate feature tokio only.
source§

impl<O> Detach for WasmAfterHandle<O>
where O: 'static,

Available on crate feature wasm only.
source§

impl<T> Detach for WasmJoinHandle<T>

Available on crate feature wasm only.