[−][src]Function ntex::rt::spawn_fn
pub fn spawn_fn<F, R>(f: F) -> JoinHandle<<R as Future>::Output> where
F: FnOnce() -> R + 'static,
R: Future + 'static,
Executes a future on the current thread. This does not create a new Arbiter or Arbiter address, it is simply a helper for executing futures on the current thread.
Panics
This function panics if ntex system is not running.