pub fn block<F, R>(f: F) -> impl Future<Output = Result<R, BlockingError>>
Expand description
Executes blocking function on a thread pool, returns future that resolves to result of the function execution.
pub fn block<F, R>(f: F) -> impl Future<Output = Result<R, BlockingError>>
Executes blocking function on a thread pool, returns future that resolves to result of the function execution.