ARKI_ASYNC_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

Work was cut short by its `AbortSignal` before it finished: a `sleep`, a `scoped` body, or an `all` / `mapConcurrent` / `race` / `timeout` call. `cause` is `signal.reason`.

Fix

Catch `AsyncError` with this code where you abort, or check `signal.aborted` before you start the work.

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:30