Function wasm_rs_async_executor::single_threaded::spawn[][src]

pub fn spawn<F, T>(fut: F) -> TaskHandle<T>

Notable traits for TaskHandle<T>

impl<T> Future for TaskHandle<T> type Output = Result<T, JoinError>;
where
    F: Future<Output = T> + 'static,
    T: 'static, 

Spawn a task