Skip to main content

thread

Function thread 

Source
pub fn thread<T: Send + 'static>(
    function: impl FnOnce() -> T + Send + 'static,
) -> impl Future<Output = T>
Expand description

Runs a blocking closure off the caller’s thread.