ARKI_ASYNC_E001
thrownThis error is thrown. It stops your code unless you catch it. Fix the cause below; catching it only hides the problem.
What happened
A wait is negative, `NaN`, not finite, or above {@link MAX_WAIT_MS}.
Fix
Pass a finite wait from 0 up to `MAX_WAIT_MS` (about 24.8 days). For a longer wait, sleep again when the timer fires.
Check the fix
bun run testRun it after the fix. It passes when the fix worked.
Where it comes from
- Package
- @arki/async
- Version
- 0.1.1 · next release candidate
- Source
- src/errors.ts:21