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: fix dangling import paths and quote style

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

Devin Ivy 34770271 238db755

+4 -4
+2 -2
examples/atomics/increment.ts
··· 1 - import { mo } from '../../src/index.ts'; 2 - import type { AtomicInt32 } from '../../src/index.ts'; 1 + import { mo } from "../../src/index.ts"; 2 + import { AtomicInt32 } from "../../src/index.ts"; 3 3 4 4 export const increment = mo(import.meta, (counter: AtomicInt32): number => { 5 5 return counter.add(1);
+1 -1
src/execute.ts
··· 1 1 import type { Worker } from 'node:worker_threads'; 2 2 import { freezeModule } from './registry.ts'; 3 - import { serializeArg, deserializeArg } from './sync/reconstruct.ts'; 3 + import { serializeArg, deserializeArg } from './shared/reconstruct.ts'; 4 4 import { extractTransferables } from './transfer.ts'; 5 5 6 6 let nextCallId = 0;
+1 -1
src/worker-entry.ts
··· 1 1 import { parentPort } from 'node:worker_threads'; 2 2 import { registry } from './registry.ts'; 3 - import { deserializeArg, serializeArg } from './sync/reconstruct.ts'; 3 + import { deserializeArg, serializeArg } from './shared/reconstruct.ts'; 4 4 import { collectTransferables } from './transfer.ts'; 5 5 import type { Transferable } from 'node:worker_threads'; 6 6