Something went wrong. Try again.
Offload functions to worker threads with shared memory primitives for Node.js.
Something went wrong. Try again.
239 B · 9 lines
TypeScript
12345678910import { mo } from '../../src/index.ts';
export const uppercase = mo(import.meta, (s: string): string => { return s.toUpperCase();});
export const repeat = mo(import.meta, (s: string, n: number): string => { return s.repeat(n);});