Readonly addedReadonly currentThe current object.
Readonly currentA signal emitted when the current object changes.
If the last object being tracked is disposed, null will be emitted.
Readonly isReadonly sizeThe number of objects held by the pool.
Readonly updatedA signal emitted when an object is updated.
Dispose of the resources held by the object.
If the object's dispose method is called more than once, all
calls made after the first will be a no-op.
It is undefined behavior to use any functionality of the object after it has been disposed unless otherwise explicitly noted.
Generated using TypeDoc
A pool of objects whose disposable lifecycle is tracked.
Typeparam
T - The type of object held in the pool.