UNPKG

multithreading

Version:

The missing standard library for multithreading in JavaScript (Works in the browser, Node.js, Deno, Bun).

4 lines (3 loc) 180 B
import { workerOverride } from "../lib/pool.js"; export * from "../lib/lib.js"; workerOverride(() => new Worker(new URL("../lib/worker.js", import.meta.url), { type: "module" }));