[][src]Function async_metronome::spawn

pub fn spawn<T, O>(task: T) -> JoinHandleWrapper<O>

Notable traits for JoinHandleWrapper<T>

impl<T> Future for JoinHandleWrapper<T> type Output = T;
where
    O: Send + 'static,
    T: Future<Output = O> + Send + 'static, 

Instruments a task and spawns it.

If called outside of test context, the task is spawned without instrumentation.