pub async fn block<F, I, E>(f: F) -> Result<I, BlockingError<E>>
Expand description
Execute blocking function on a thread pool, returns future that resolves to result of the function execution.
pub async fn block<F, I, E>(f: F) -> Result<I, BlockingError<E>>
Execute blocking function on a thread pool, returns future that resolves to result of the function execution.