Skip to main content

block_on_timeout

Function block_on_timeout 

Source
pub fn block_on_timeout<F: IntoFuture>(
    timeout: Duration,
    future: F,
) -> Result<F::Output, BlockOnError>
Expand description

Polls a future until completion or a relative monotonic timeout.