UNPKG

multithreading

Version:

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

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