MCPcopy
hub / github.com/callstack/agent-device / retry

Function retry

src/__tests__/test-utils/loopback.ts:96–102  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

94 req.on('error', retry);
95 };
96 const retry = () => {
97 if (Date.now() >= deadline) {
98 reject(new Error(`Timed out waiting for ${url}.`));
99 return;
100 }
101 setTimeout(attempt, 25);
102 };
103 attempt();
104 });
105}

Callers 1

attemptFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected