Skip to main content

track_background_task

Function track_background_task 

Source
pub fn track_background_task<F>(fut: F)
where F: Future<Output = ()> + Send + 'static,
Expand description

Spawn a fire-and-forget task through spawn_tracked_task.

Callers that need a boot or shutdown barrier should retain and await the returned handle from spawn_tracked_task instead of detaching it here.