[−][src]Function async_metronome::spawn
pub fn spawn<T, O>(task: T) -> JoinHandleWrapper<O>ⓘwhereNotable traits for JoinHandleWrapper<T>
impl<T> Future for JoinHandleWrapper<T> type Output = T;
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.