Inline fetch-retry with cancellation
This commit is contained in:
parent
d772cda164
commit
a9223156a6
1 changed files with 109 additions and 100 deletions
3
frontend/sync-client/src/utils/sleep.ts
Normal file
3
frontend/sync-client/src/utils/sleep.ts
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
export async function sleep(ms: number): Promise<void> {
|
||||
return new Promise((resolve) => setTimeout(resolve, ms));
|
||||
}
|
||||
Loading…
Reference in a new issue