Options
All
  • Public
  • Public/Protected
  • All
Menu

Class FixedThreadPool

Hierarchy

  • FixedThreadPool

Implements

Index

Constructors

constructor

  • new FixedThreadPool(numThreads: number, workerOptions?: WorkerOptions): FixedThreadPool

Properties

Private freeWorkers

freeWorkers: Worker[] = []

Private numThreads

numThreads: number

Private queue

queue: Array<ISubmittedThread<any, any>> = []

Private workerOptions

workerOptions: WorkerOptions

Methods

Private executeNext

  • executeNext(): any

submit

  • submit<T, D>(fn: Runnable<T, D>, data?: D): Promise<T>

Generated using TypeDoc