pal_async::local

Function block_with_io

Source
pub fn block_with_io<F, Fut, R>(f: F) -> R
where F: FnOnce(LocalDriver) -> Fut, Fut: Future<Output = R>,
Expand description

Polls a future that needs to issue IO until it completes.