Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface PoolOptions<Worker>

Options for a poolifier pool.

Type parameters

  • Worker

Hierarchy

Index

Properties

Optional enableEvents

enableEvents: undefined | boolean

Pool events emission.

Default to true.

Optional errorHandler

errorHandler: undefined | ErrorHandler<Worker>

A function that will listen for error event on each worker.

Optional exitHandler

exitHandler: undefined | ExitHandler<Worker>

A function that will listen for exit event on each worker.

Optional onlineHandler

onlineHandler: undefined | OnlineHandler<Worker>

A function that will listen for online event on each worker.

Optional workerChoiceStrategy

workerChoiceStrategy: undefined | "ROUND_ROBIN" | "LESS_RECENTLY_USED"

The work choice strategy to use in this pool.

Generated using TypeDoc