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

remove copy from transfer example

+2 -3
+2 -3
examples/transfer/process-image.ts
··· 2 2 3 3 export const processImage = mo(import.meta, (pixels: Uint8Array): Uint8Array => { 4 4 // Invert each pixel (simulate image processing) 5 - const result = new Uint8Array(pixels.length); 6 5 for (let i = 0; i < pixels.length; i++) { 7 - result[i] = 255 - pixels[i]; 6 + pixels[i] = 255 - pixels[i]; 8 7 } 9 - return result; 8 + return pixels; 10 9 });