We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 669c442 commit 152a348Copy full SHA for 152a348
packages/libraries/laboratory/src/lib/request.ts
@@ -10,21 +10,3 @@ export function createRequestSignal(
10
11
return signal;
12
}
13
-
14
-export async function fetchWithRetry(
15
- input: RequestInfo | URL,
16
- init: RequestInit,
17
- retryCount = 0,
18
-): Promise<Response> {
19
- for (let attempt = 0; attempt <= retryCount; attempt++) {
20
- try {
21
- return await fetch(input, init);
22
- } catch (error) {
23
- if (attempt >= retryCount) {
24
- throw error;
25
- }
26
27
28
29
- throw new Error('Unreachable');
30
-}
0 commit comments