Skip to main content

with_timeout

Function with_timeout 

Source
pub async fn with_timeout<F, T>(
    future: F,
    timeout_duration: Duration,
) -> ObnizResult<T>
where F: Future<Output = ObnizResult<T>>,
Expand description

Timeout helper for operations