Skip to main content

deadline_after

Function deadline_after 

pub fn deadline_after<I>(start: I, timeout: Duration) -> I
Available on crate feature std only.
Expand description

start + timeout, shortened only when the platform cannot represent it.

An unrepresentable deadline saturates to a far future instant, never to start, and this function never panics.