Function defer
fn defer(timer: Pin<&mut Sleep>, delay: Duration)Available on crate feature
tokio only.Expand description
Resets timer to fire delay from now.
An unrepresentable deadline falls back to a fresh [time::sleep], which
clamps it to the far future.