MCPcopy Create free account
hub / github.com/cel-expr/cel-go / RetryAttempts

Function RetryAttempts

cel/async/async.go:153–157  ·  view source on GitHub ↗

RetryAttempts sets the maximum number of attempts (including the first one).

(attempts int)

Source from the content-addressed store, hash-verified

151
152// RetryAttempts sets the maximum number of attempts (including the first one).
153func RetryAttempts(attempts int) RetryOption {
154 return func(c *retryConfig) {
155 c.maxAttempts = attempts
156 }
157}
158
159// RetryBackoff sets the fixed backoff duration between attempts.
160func RetryBackoff(backoff time.Duration) RetryOption {

Calls

no outgoing calls