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.

at e2cebd539403475e2f4e79d55ca1a84a0ce3510d 7 lines 213 B view raw
1import { mo } from 'moroutine'; 2 3export const identity = mo(import.meta, (n: number): number => n); 4 5export const countUp = mo(import.meta, async function* (n: number) { 6 for (let i = 0; i < n; i++) yield i; 7});