Function spawn_local

Source
pub fn spawn_local<F, Fut>(env: &Env, callback: F) -> Result<()>
where F: FnOnce(Env) -> Fut + 'static, Fut: Future<Output = Result<()>> + 'static,