Skip to main content

rand_offset

Function rand_offset 

Source
pub fn rand_offset(jitter: Duration) -> Duration
Expand description

Draw a random delay in [0, jitter]. Mirrors the jitter draw in crate::retry so the same cross-platform rand path is exercised.

Public so workers that compute their own per-iteration sleeps (rather than driving jittered_interval_stream) can de-synchronize fleet-wide wakes.