Skip to main content

Module backoff

Module backoff 

Available on crate feature tokio only.
Expand description

Deterministic jitter for reconnect backoff.

Structsยง

XorShift32 ๐Ÿ”’
XorShift32 PRNG for deterministic jitter.

Functionsยง

apply_jitter ๐Ÿ”’
Reduces delay by a random fraction up to jitter of its length.
next_delay ๐Ÿ”’
Computes the next reconnect delay from the previous one.