MCPcopy
hub / github.com/vercel/async-retry / onError

Function onError

lib/index.js:25–36  ·  view source on GitHub ↗
(err, num)

Source from the content-addressed store, hash-verified

23 }
24
25 function onError(err, num) {
26 if (err.bail) {
27 bail(err);
28 return;
29 }
30
31 if (!op.retry(err)) {
32 reject(op.mainError());
33 } else if (options.onRetry) {
34 options.onRetry(err, num);
35 }
36 }
37
38 function runAttempt(num) {
39 var val;

Callers 1

runAttemptFunction · 0.85

Calls 1

bailFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…