Trait compress_tools::async_support::BlockingExecutor [−][src]
pub trait BlockingExecutor {
fn execute_blocking<'async_trait, T, F>(
f: F
) -> Pin<Box<dyn Future<Output = Result<T>> + Send + 'async_trait>>
where
T: Send + 'static,
F: FnOnce() -> T + Send + 'static,
T: 'async_trait,
F: 'async_trait;
}
Required methods
Execute the provided function on a thread where blocking is acceptable (in some kind of thread pool).