Skip to content

Latest commit

 

History

History
13 lines (9 loc) · 195 Bytes

File metadata and controls

13 lines (9 loc) · 195 Bytes

backoff

go backoff lib,support jitter,avoid 'thundering herd' effect

install

go get github.com/mmaxiaolei/backoff

usage

b := backoff.NewExponentialBackoff()
d := b.Next()