background

Function background 

Source
pub fn background<T, F>(f: F) -> BackgroundTask<T>
where T: Send + 'static, F: FnOnce() -> T + Send + 'static,
Expand description

Run a computation in the background (non-blocking) Returns a handle that can be joined