pub fn thread<T: Send + 'static>( function: impl FnOnce() -> T + Send + 'static, ) -> impl Future<Output = T>
Runs a blocking closure off the caller’s thread.