Function tokio_executor::blocking::run [−][src]
pub fn run<F, R>(f: F) -> Blocking<R>ⓘ where
F: FnOnce() -> R + Send + 'static,
R: Send + 'static,
Run the provided function on a threadpool dedicated to blocking operations.
pub fn run<F, R>(f: F) -> Blocking<R>ⓘ where
F: FnOnce() -> R + Send + 'static,
R: Send + 'static,
Run the provided function on a threadpool dedicated to blocking operations.