Function timeout_local

Source
pub async fn timeout_local<T, F>(duration: Duration, f: F) -> Option<T>
where F: Future<Output = T>,