UNPKG

@xylabs/threads

Version:

Web workers & worker threads as simple as a function call

13 lines 764 B
import type { BlobWorker as BlobWorkerClass, Worker as WorkerType } from '../types/master.ts'; export type { FunctionThread, ModuleThread } from '../types/master.ts'; export { Pool } from './pool-browser.ts'; export { spawn } from './spawn.ts'; export { Thread } from './thread.ts'; export type BlobWorker = typeof BlobWorkerClass; export type Worker = WorkerType; /** Separate class to spawn workers from source code blobs or strings. */ export declare const BlobWorker: typeof BlobWorkerClass; /** Worker implementation. Either web worker or a node.js Worker class. */ export declare const Worker: typeof import("../types/master.ts").WorkerImplementation; export { isWorkerRuntime } from './implementation.browser.ts'; //# sourceMappingURL=index-browser.d.ts.map