Skip to main content

detached

Function detached 

Source
pub(crate) async fn detached<T: Send + 'static>(
    fut: impl Future<Output = T> + Send + 'static,
) -> Option<T>
Expand description

Run fut to completion as a tracked task, even if the caller is dropped first; app_exit waits for it. None if it panicked.