Options
All
  • Public
  • Public/Protected
  • All
Menu

Type parameters

  • T = unknown

Hierarchy

  • PoolOptions

Index

Properties

hashFn?: HashFn

A function to calculate a hash string for the specified arguments

maxSize?: number

The maximum number of resources that the pool can contain

default

Infinity

onBorrow?: ResourceHook<T>

Handler: taking some resource via borrow methods

onClear?: PoolHook<T>

Handler: clearing of all pool resources

onFree?: ResourceHook<T>

Handler: releasing of some resource

onTake?: ResourceHook<T>

Handler: taking some resource via take methods

resourceDestructor?: ResourceDestructor<T>

A function to destroy one resource from the pool

size?: number

Number of resources to create at pull initialization

default

0