Function ntex::rt::spawn[][src]

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

Notable traits for JoinHandle<T>

impl<T> Future for JoinHandle<T> type Output = Result<T, JoinError>;
where
    F: Future + 'static, 
Expand description

Spawn a future on the current thread. This does not create a new Arbiter or Arbiter address, it is simply a helper for spawning futures on the current thread.

Panics

This function panics if ntex system is not running.