MCPcopy Create free account
hub / github.com/blastrain/vitess-sqlparser / RunWithRetry

Function RunWithRetry

tidbparser/dependency/util/misc.go:35–46  ·  view source on GitHub ↗

RunWithRetry will run the f with backoff and retry. retryCnt: Max retry count backoff: When run f failed, it will sleep backoff * triedCount time.Millisecond. Function f should have two return value. The first one is an bool which indicate if the err if retryable. The second is if the f meet any err

(retryCnt int, backoff uint64, f func() (bool, error))

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

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…