Skip to main content

spawn_detached

Function spawn_detached 

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

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

Like spawn(), this applies registered task callbacks and supports non-Send futures and outputs. The output is discarded when the task completes. No ntex join handle is returned.

ยงPanics

Panics outside a Tokio context that supports local spawning, such as a LocalSet.