[][src]Function simulation::spawn_with_result

pub fn spawn_with_result<F, E, U>(
    env: &E,
    future: F
) -> impl Future<Output = Option<U>> where
    F: Future<Output = U> + Send + 'static,
    U: Send + 'static,
    E: Environment