Buckets:
| // @ts-expect-error File exists | |
| import asyncRetry from 'next/dist/compiled/async-retry' | |
| export async function retry<T>( | |
| fn: asyncRetry.RetryFunction<T>, | |
| retries: number | |
| ) { | |
| return await asyncRetry(fn, { | |
| retries, | |
| onRetry(e: unknown, attempt: unknown) { | |
| console.error( | |
| (e as Error).message + `\n\nRetrying ${attempt}/${retries}...` | |
| ) | |
| }, | |
| minTimeout: 100, | |
| }) | |
| } | |
Xet Storage Details
- Size:
- 402 Bytes
- Xet hash:
- 41606d1ebf7f2033553ca7a8af0199ccb81d1bfaa106c77389f74f8b708f1f0d
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.