Options
All
  • Public
  • Public/Protected
  • All
Menu

Class WorkerPool<TIn, TOut>

Type parameters

  • TIn

  • TOut

Hierarchy

  • WorkerPool

Constructors

Properties

Methods

Constructors

constructor

Properties

Private pool

pool: Array<Worker> = []

Private queue

queue: PQueue<PriorityQueue, DefaultAddOptions> = new PQueue({concurrency: Math.max(1, cpus().length),})

Private source

source: string

Methods

run

  • run(data: TIn): Promise<TOut>

Generated using TypeDoc