Skip to main content

LocalJoinHandle

Trait LocalJoinHandle 

Source
pub trait LocalJoinHandle<O>: Future<Output = Result<O, Self::JoinError>> + Unpin {
    type JoinError: Error + Into<Error> + 'static;

    // Provided method
    fn detach(self)
       where Self: Sized { ... }
}
Expand description

Joinhanlde trait

Required Associated Types§

Source

type JoinError: Error + Into<Error> + 'static

Available on crate feature std only.

The error type for the join handle

Provided Methods§

Source

fn detach(self)
where Self: Sized,

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

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T> LocalJoinHandle<T> for JoinHandle<T>

Available on crate feature tokio only.
Source§

type JoinError = JoinError

Available on crate feature std only.

Implementors§

Source§

impl<O> LocalJoinHandle<O> for agnostic_lite::wasm::JoinHandle<O>

Available on crate feature wasm only.
Source§

impl<O> LocalJoinHandle<O> for agnostic_lite::embassy::JoinHandle<O>

Available on crate feature embassy only.
Source§

impl<T> LocalJoinHandle<T> for agnostic_lite::smol::JoinHandle<T>

Available on crate feature smol only.