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.

1import { mo } from '../../src/index.ts'; 2 3export const work = mo(import.meta, (ms: number): number => { 4 const start = Date.now(); 5 while (Date.now() - start < ms) { 6 /* busy wait */ 7 } 8 return ms; 9});