MCPcopy
hub / github.com/cenkalti/backoff / Is

Method Is

error.go:100–100  ·  view source on GitHub ↗

Is reports a match against ErrPermanent so a Permanent error can be detected with errors.Is even before Retry converts it into a RetryError.

(target error)

Source from the content-addressed store, hash-verified

98// Is reports a match against ErrPermanent so a Permanent error can be detected
99// with errors.Is even before Retry converts it into a RetryError.
100func (e *permanent) Is(target error) bool { return target == ErrPermanent }
101
102// RetryAfterError signals that the operation should be retried after the given
103// duration. When an operation returns one (directly or wrapped), Retry waits

Callers 13

TestRetryContextFunction · 0.80
TestRetryErrorFunction · 0.80
TestPermanentFunction · 0.80
TestRetryPermanentErrorFunction · 0.80
TestIssue177Function · 0.80
TestRetryContextDeadlineFunction · 0.80
TestRetryNotifyFunction · 0.80
TestRetryAfterErrorFunction · 0.80
ExampleRetry_outcomesFunction · 0.80

Calls

no outgoing calls

Tested by 13

TestRetryContextFunction · 0.64
TestRetryErrorFunction · 0.64
TestPermanentFunction · 0.64
TestRetryPermanentErrorFunction · 0.64
TestIssue177Function · 0.64
TestRetryContextDeadlineFunction · 0.64
TestRetryNotifyFunction · 0.64
TestRetryAfterErrorFunction · 0.64
ExampleRetry_outcomesFunction · 0.64