Skip to main content

spawn_detached

Function spawn_detached 

Source
pub fn spawn_detached<F>(fut: F)
where F: Future + 'static,
Expand description

Spawns a future on the current thread without a join handle.

The output is dropped when the task completes. Unlike dropping the JoinHandle returned by spawn(), this does not allocate a handle.

ยงPanics

This function panics if ntex system is not running.