Function tokio_executor::blocking::run

source ·
pub fn run<F, R>(f: F) -> Blocking<R> 
where F: FnOnce() -> R + Send + 'static, R: Send + 'static,
Expand description

Run the provided function on a threadpool dedicated to blocking operations.