Function actix_rt::spawn[][src]

pub fn spawn<Fut>(f: Fut) -> JoinHandle<()>

Notable traits for JoinHandle<T>

impl<T> Future for JoinHandle<T> type Output = Result<T, JoinError>;
where
    Fut: Future<Output = ()> + 'static, 

Spawns a future on the current thread.

Panics

Panics if Actix system is not running.