improved API request wrapper, partial completion of operations

This commit is contained in:
2025-03-13 15:15:43 -07:00
parent 7eec2adc7a
commit 17e0480f83
16 changed files with 320 additions and 282 deletions

View File

@@ -1,5 +1,7 @@
export const sleep = (ms: number): Promise<unknown> =>
const sleep = (ms: number): Promise<unknown> =>
new Promise((resolve) => setTimeout(resolve, ms));
export const randomBool = (chance_of_failure = 0.25): boolean =>
const randomBool = (chance_of_failure = 0.25): boolean =>
Math.random() < chance_of_failure;
export { sleep, randomBool };