Skip to main content

spawn

Function spawn 

Source
pub fn spawn<F>(f: F) -> JoinHandle<<F as Future>::Output> ⓘ
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.