node-worker-threads-pool-ts
Version:
Simple worker threads pool using Node's worker_threads module. Compatible with ES6+ Promise, Typescript, Async/Await.
16 lines • 470 B
JavaScript
;
/**
* @typedef {import("./pool-worker").TaskConfig} TaskConfig
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.TaskContainer = void 0;
class TaskContainer {
constructor(param, resolve, reject, taskConfig) {
this.param = param;
this.resolve = resolve;
this.reject = reject;
this.taskConfig = taskConfig;
}
}
exports.TaskContainer = TaskContainer;
//# sourceMappingURL=task-container.js.map