IObjectPool<T>
Interface in Zigurous.DataStructures
Declaration
public interface IObjectPool<T>
where T : classDescription
A type that can retrieve and recycle objects from a shared pool.
Type Parameters
| T | The type of object to be pooled. |
Methods
| Retrieve | Removes and returns an object from the pool. |
| Recycle | Adds an object back to the pool so it can be reused. |
| Empty | Empties the pool of all objects. |