Function spawn

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