MCPcopy Create free account
hub / github.com/dropbox/dbxcli / retryWithBackoff

Function retryWithBackoff

cmd/retry.go:104–106  ·  view source on GitHub ↗
(fn func() error)

Source from the content-addressed store, hash-verified

102}
103
104func retryWithBackoff(fn func() error) error {
105 return retryWithBackoffContext(currentContext(), fn)
106}
107
108func retryWithBackoffContext(ctx context.Context, fn func() error) error {
109 backoff := initialBackoff

Calls 2

retryWithBackoffContextFunction · 0.85
currentContextFunction · 0.85