Skip to main content

run_blocking_io

Function run_blocking_io 

Source
pub fn run_blocking_io<T: Send + 'static>(
    operation: impl FnOnce() -> T + Send + 'static,
) -> BlockingIoTask<T> ⓘ
Expand description

Schedules one owned host operation on the bounded native worker pool. Creating the future is lazy; polling it admits the operation.