with_default_timeout

Function with_default_timeout 

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

Run an async function with the default timeout.

Uses DEFAULT_TIMEOUT (5 seconds) as the timeout.