UNPKG

node-worker-threads-pool-ts

Version:

Simple worker threads pool using Node's worker_threads module. Compatible with ES6+ Promise, Typescript, Async/Await.

12 lines (11 loc) 376 B
/** * @typedef {import("./pool-worker").TaskConfig} TaskConfig */ import { TaskConfig } from "./pool-worker"; export declare class TaskContainer { param: any; resolve: (value: any) => any; reject: (reason: any) => any; taskConfig: TaskConfig; constructor(param: any, resolve: (value: any) => any, reject: (reason: any) => any, taskConfig: TaskConfig); }