ARKI_CLOCK_E002
thrownThis error is thrown. It stops your code unless you catch it. Fix the cause below; catching it only hides the problem.
What happened
`setTimer` or `sleep` got a delay that is negative, not finite, or longer than a timer can hold.
Fix
Pass a finite delay from 0 up to `MAX_TIMER_MS` (about 24.8 days). Split a longer wait into steps.
Check the fix
bun run testRun it after the fix. It passes when the fix worked.
Where it comes from
- Package
- @arki/clock
- Version
- 0.1.1 · next release candidate
- Source
- src/errors.ts:23