pub fn spawn_blocking<T: Send + 'static>( work: impl FnOnce() -> T + Send + 'static, ) -> impl Future<Output = T>
Runs work on a background thread; the returned future resolves on the UI thread with its result.
work