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

feat: Runner accepts array of tasks, update examples to use run([...]) master

run() now accepts either a single Task or an array of Tasks. With an array, it returns Promise<[R1, R2, ...]> with proper tuple typing. Replaces Promise.all([run(a), run(b)]) pattern. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>


+26 -16
7 changed files