UNPKG

757 BTypeScriptView Raw
1import type { BlobWorker as BlobWorkerClass } from "../types/master";
2import { Worker as WorkerType } from "../types/master";
3import { isWorkerRuntime } from "./implementation";
4export { FunctionThread, ModuleThread } from "../types/master";
5export { Pool } from "./pool";
6export { spawn } from "./spawn";
7export { Thread } from "./thread";
8export { isWorkerRuntime };
9export declare type BlobWorker = typeof BlobWorkerClass;
10export declare type Worker = WorkerType;
11/** Separate class to spawn workers from source code blobs or strings. */
12export declare const BlobWorker: typeof BlobWorkerClass;
13/** Worker implementation. Either web worker or a node.js Worker class. */
14export declare const Worker: typeof import("../types/master").WorkerImplementation;