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

pub fn spawn<F>(future: F) -> JoinHandle<<F as Future>::Output>

Important traits for JoinHandle<R>

impl<R> Future for JoinHandle<R> where
    R: 'static + Send
type Output = R;
where
    F: Future + Send + 'static,
    <F as Future>::Output: Send,
    <F as Future>::Output: 'static, 

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