MCPcopy Create free account
hub / github.com/assembla/cony / Backoff

Function Backoff

client.go:261–265  ·  view source on GitHub ↗

Backoff is a functional option, used to define backoff policy, used in `NewClient` constructor

(bo Backoffer)

Source from the content-addressed store, hash-verified

259// Backoff is a functional option, used to define backoff policy, used in
260// `NewClient` constructor
261func Backoff(bo Backoffer) ClientOpt {
262 return func(c *Client) {
263 c.bo = bo
264 }
265}
266
267// ErrorsChan is a functional option, used to initialize error reporting channel
268// in client code, maintaining control over buffer size. Default buffer size is

Callers 1

TestBackoffFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestBackoffFunction · 0.68