UNPKG

1.1 kBJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.Worker = exports.BlobWorker = exports.isWorkerRuntime = exports.Thread = exports.spawn = exports.Pool = void 0;
4const implementation_1 = require("./implementation");
5Object.defineProperty(exports, "isWorkerRuntime", { enumerable: true, get: function () { return implementation_1.isWorkerRuntime; } });
6var pool_1 = require("./pool");
7Object.defineProperty(exports, "Pool", { enumerable: true, get: function () { return pool_1.Pool; } });
8var spawn_1 = require("./spawn");
9Object.defineProperty(exports, "spawn", { enumerable: true, get: function () { return spawn_1.spawn; } });
10var thread_1 = require("./thread");
11Object.defineProperty(exports, "Thread", { enumerable: true, get: function () { return thread_1.Thread; } });
12/** Separate class to spawn workers from source code blobs or strings. */
13exports.BlobWorker = implementation_1.getWorkerImplementation().blob;
14/** Worker implementation. Either web worker or a node.js Worker class. */
15exports.Worker = implementation_1.getWorkerImplementation().default;