spawn_blocking_flatten

Function spawn_blocking_flatten 

Source
pub fn spawn_blocking_flatten<F, T>(f: F) -> impl Future<Output = Result<T>>
where F: FnOnce() -> Result<T> + Send + 'static, T: Send + 'static,
Expand description

A wrapper around [tokio::task::spawn_blocking] that flattens nested results.