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.

feat: add optional worker property to Task and StreamTask

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

+2
+1
src/stream-task.ts
··· 11 11 readonly uid: number; 12 12 readonly id: string; 13 13 readonly args: unknown[]; 14 + worker?: unknown; 14 15 15 16 /** @param id - The moroutine identifier (module URL + index). 16 17 * @param args - The arguments to pass to the worker generator function. */
+1
src/task.ts
··· 10 10 readonly uid: number; 11 11 readonly id: string; 12 12 readonly args: unknown[]; 13 + worker?: unknown; 13 14 14 15 /** @param id - The moroutine identifier (module URL + index). 15 16 * @param args - The arguments to pass to the worker function. */