Trait agnostic_lite::LocalAfterHandle
source · pub trait LocalAfterHandle<F: 'static, E>: Detach + Future<Output = Result<F, AfterHandleError<E>>> + 'static {
// Required method
fn cancel(
self
) -> impl Future<Output = Option<Result<F, AfterHandleError<E>>>>;
}Available on crate feature
time only.Expand description
The handle returned by the AsyncLocalAfterSpawner when a after future is spawned.
Drop the handle to detach the task.
Required Methods§
Object Safety§
This trait is not object safe.
Implementors§
impl<O> LocalAfterHandle<O, Infallible> for AsyncStdAfterHandle<O>where
O: 'static,
Available on crate feature
async-std only.impl<O> LocalAfterHandle<O, Canceled> for SmolAfterHandle<O>where
O: 'static,
Available on crate feature
smol only.impl<O> LocalAfterHandle<O, Canceled> for WasmAfterHandle<O>where
O: 'static,
Available on crate feature
wasm only.impl<O> LocalAfterHandle<O, JoinError> for TokioAfterHandle<O>where
O: 'static,
Available on crate feature
tokio only.