Offload functions to worker threads with shared memory primitives for Node.js.
8
fork

Configure Feed

Select the types of activity you want to include in your feed.

chore: add changeset for async worker cleanup

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

+10
+10
.changeset/async-worker-cleanup.md
··· 1 + --- 2 + "moroutine": minor 3 + --- 4 + 5 + Graceful async worker pool shutdown 6 + 7 + - `await using run = workers(4)` waits for in-flight tasks to settle before terminating workers 8 + - `run.signal` is an `AbortSignal` that fires when the pool starts disposing — thread it into tasks for cooperative cancellation 9 + - `workers(size, { shutdownTimeout: ms })` force-terminates workers if graceful shutdown exceeds the timeout 10 + - Existing `using run` (sync dispose) still terminates immediately