ARKI_ASYNC_E003

thrownThis error is thrown. It stops your code unless you catch it. Fix the cause below; catching it only hides the problem.

What happened

One or more `scoped` finalizers threw. `errors` holds them; `cause` is the body error, if any.

Fix

Read `error.errors` for each finalizer failure and `error.cause` for the body failure. Make the failing finalizer safe to run twice.

Check the fix

bun run test

Run 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:37