spawn

Function spawn 

Source
pub fn spawn<F>(
    ready: Option<Receiver<()>>,
    future: F,
) -> impl StreamHandle<StreamOutput = F::Output>
where F: Future + Send + 'static, F::Output: Send + 'static,