with_timeout

Function with_timeout 

Source
pub async fn with_timeout<F>(duration: Duration, future: F) -> Result<F::Output>
where F: Future,
Expand description

Timeout executor - wraps a future with timeout