Function js_utils::spawn::spawn

source ·
pub fn spawn<F>(future: F) -> JoinHandle<F::Output> where
    F: Future + 'static,
    F::Output: 'static,
Expand description

Spawns a new asynchronous task, returning a JoinHandle for it.