node-worker-threads-pool
Version:
Simple worker threads pool using Node's worker_threads module. Compatible with ES6+ Promise, Async/Await.
13 lines (12 loc) • 360 B
JavaScript
;
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;