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

FuncType Operation

retry.go:15–15  ·  view source on GitHub ↗

Operation is the function Retry calls. It is invoked at least once and may be retried on error. Return a Permanent error to stop retrying immediately, or a RetryAfterError to control the delay before the next attempt.

func() (T, error)

Source from the content-addressed store, hash-verified

13// retried on error. Return a Permanent error to stop retrying immediately, or a
14// RetryAfterError to control the delay before the next attempt.
15type Operation[T any] func() (T, error)
16
17// Notify is called after a failed attempt that will be retried, with the
18// operation error and the backoff duration before the next attempt. It is

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…