Current number of objects in the pool.
The soft ceiling by which the pool is trimmed.
Protected_Protected_Protected_Signals the pool to trim after a delay.
Clears out the pool.
Shortcut for toArrayAndClear();
Gives an item to the pool. If recyclable, will be added to the recycler.
Empties the pool into an array and returns it.
Trims the pool to the optional specified max (or the default).
Optionalmax: numberAttempts to get an item from the pool. Returns undefined if none available.
StaticcreateStaticcreateCreates an auto-recycled pool using the specified generator.
Optionalgenerator: (...args: any[]) => T
A flexible Object Pool that trims the pool down to the specified max size after a specified delay.