Function spawn

Source
pub fn spawn<F>(name: &str, future: F) -> JaTask
where F: Future + Send + 'static, F::Output: Send + 'static,
Expand description

Spawns a new task. The name field is for debugging purposes only.