Options
All
  • Public
  • Public/Protected
  • All
Menu

For pooling objects that can be reused.

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

objects

objects: any[] = ...

The objects array.

type

type: any = ...

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
  • Release an object after use

    Parameters

    • Rest ...args: any[]

    Returns Pool