clock.sleep_cancelled
failureThis is a failure. A function returns it as a value, so your code keeps running and you decide what to do.
What happened
A sleep ended before its timer because its owner cancelled it.
Fix
Handle cancellation at the owning operation boundary.
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:55