Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Pool

For pooling objects that can be reused.

Hierarchy

Index

Constructors

constructor

Properties

objects

objects: any[] = []

The objects array.

type

type: any = Object

The type of the objects.

Methods

constructObject

  • constructObject(): void
  • Construct an object. Should be implemented in each subclass.

    Returns void

get

  • get(): any

release

  • release(...args: any[]): Pool