pub trait SpawnJoinHandle<U>: Send + Sync + Unpin + CoreFuture<Output = U> { }
Available on crate feature rt only.
Expand description

trait that the return type of Spawning must implement

if () is returned, use Ready instead.

Implementations on Foreign Types§

source§

impl<T: Send + Sync + Unpin> SpawnJoinHandle<T> for JoinHandle<T>

Available on crate feature async-std only.
source§

impl SpawnJoinHandle<()> for Ready<()>

Available on crate feature wasm32 only.
source§

impl<T: Send + Sync + Unpin> SpawnJoinHandle<Result<T, JoinError>> for JoinHandle<T>

Available on crate feature tokio only.

Implementors§