Function async_compatibility_layer::art::async_timeout
source ยท pub fn async_timeout<T>(
duration: Duration,
future: T
) -> impl Future<Output = Result<T::Output, TimeoutError>>where
T: Future,Expand description
Provides timeout with async_std that matches tokio::time::timeout