pingora_timeout::fast_timeout

Function fast_timeout

Source
pub fn fast_timeout<T>(duration: Duration, future: T) -> Timeout<T, FastTimeout> 
where T: Future,
Expand description

Similar to tokio::time::timeout but more efficient.