Skip to content

API.Util.ObjectPool

JuDelCo edited this page Jun 1, 2021 · 4 revisions

Namespace: Ju.Util

ObjectPool < T >

A very simple but functional object pool. It will instantiate a new object if there is none cached.

ObjectPool();
ObjectPool(int capacity);

T Get();
void Push(T obj);
Clone this wiki locally