UNPKG

thread-pool-node

Version:

Worker threads pool based on generic-pool

11 lines (8 loc) 302 B
import { Options, Pool } from "generic-pool"; import { WorkerOptions, Worker } from "worker_threads"; export interface WorkerThreadsPoolOptions { workerPath: string; workerOptions: WorkerOptions; poolOptions: Options; } export default function(options: WorkerThreadsPoolOptions): Pool<Worker>;