- Preparing search index...
- The search index is not available
p2-es
Constructors
constructor
- new Pool<T>(options?): Pool<T>
-
Returns Pool<T>
Properties
objects
objects: T[] = []
Methods
Abstract
create
- create(): T
-
Returns T
Abstract
destroy
- destroy(object): void
-
Returns void
get
- get(): T
-
Returns T
an object from the pool
release
- release(object): Pool<T>
-
Returns Pool<T>
Self for chaining
resize
- resize(size): Pool<T>
-
Returns Pool<T>
Self, for chaining
Object pooling utility.