logo

Function bastion::io::prelude::spawn[]

pub fn spawn<F>(future: F) -> JoinHandle<<F as Future>::Output>
Notable traits for JoinHandle<R>
impl<R> Future for JoinHandle<R> where
    R: 'static + Send
type Output = R;
where
    F: 'static + Future + Send,
    <F as Future>::Output: 'static,
    <F as Future>::Output: Send
Expand description

spawn will use the global executor instance, which is determined by the cargo features, to spawn the given future.