[ Web Proxy ]
URL:
Viewing: https://raw.githubusercontent.com/poolifier/poolifier/master/docs/classes/src.FixedThreadPool.html [Back]  [Original]

FixedThreadPool | poolifier - v5.3.2
poolifier - v5.3.2
Preparing search index...

Class FixedThreadPool<Data, Response>

A thread pool with a fixed number of threads.

0.0.1

Type Parameters

Hierarchy (View Summary)

Index

Constructors

Properties

destroying: boolean

Whether the pool is destroying or not.

Inherited from AbstractPool.destroying

emitter?: EventEmitterAsyncResource

Inherited from AbstractPool.emitter

filePath: string

Path to the worker file.

Inherited from AbstractPool.filePath

maximumNumberOfWorkers?: number

Maximum number of workers that this pool manages.

Inherited from AbstractPool.maximumNumberOfWorkers

minimumNumberOfWorkers: number

Minimum number of workers that this pool manages.

Inherited from AbstractPool.minimumNumberOfWorkers

opts: PoolOptions<Worker>

Options for the pool.

Inherited from AbstractPool.opts

promiseResponseMap: Map<
`${string}-${string}-${string}-${string}-${string}`,
PromiseResponseWrapper<Response>,
> = ...

The task execution response promise map:

  • key: The message id of each submitted task.
  • value: An object that contains task's worker node key, execution response promise resolve and reject callbacks, async resource.

When we receive a message from the worker, we get a map entry with the promise resolve/reject bound to the message id.

Inherited from AbstractPool.promiseResponseMap

started: boolean

Whether the pool is started or not.

Inherited from AbstractPool.started

starting: boolean

Whether the pool is starting or not.

Inherited from AbstractPool.starting

workerChoiceStrategiesContext?: WorkerChoiceStrategiesContext<
Worker,
Data,
Response,
>

Worker choice strategies context referencing worker choice algorithms implementation.

Inherited from AbstractPool.workerChoiceStrategiesContext

workerNodes: IWorkerNode<Worker, Data>[] = []

Inherited from AbstractPool.workerNodes

Accessors

Methods

Generated using TypeDoc


Web Proxy Viewer  |  New URL  |  Original Page