Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/jpillora/backoff
/ functions
Functions
13 in github.com/jpillora/backoff
⨍
Functions
13
◇
Types & classes
1
↓ 29 callers
Function
equals
(t *testing.T, v1, v2 interface{})
backoff_test.go:122
↓ 22 callers
Method
Duration
Duration returns the duration for the current attempt before incrementing the attempt counter. See ForAttempt.
backoff.go:27
↓ 6 callers
Method
Attempt
Attempt returns the current attempt counter value.
backoff.go:86
↓ 6 callers
Method
Reset
Reset restarts the current attempt counter at zero.
backoff.go:81
↓ 5 callers
Method
ForAttempt
ForAttempt returns the duration for a specific attempt. This is useful if you have a large number of independent Backoffs, but don't want use unnecess
backoff.go:41
↓ 2 callers
Function
between
(t *testing.T, actual, low, high time.Duration)
backoff_test.go:113
Function
Test1
(t *testing.T)
backoff_test.go:9
Function
Test2
(t *testing.T)
backoff_test.go:39
Function
Test3
(t *testing.T)
backoff_test.go:54
Function
Test4
(t *testing.T)
backoff_test.go:69
Function
TestForAttempt
(t *testing.T)
backoff_test.go:24
Function
TestGetAttempt
(t *testing.T)
backoff_test.go:79
Function
TestJitter
(t *testing.T)
backoff_test.go:98