Skip to content

IObjectPool<T> Methods

Simple object pool Interface. Objects allocated should be returned to the pool when disposed.

Allocate

abstract
public abstract T Allocate()
Allocates a pooled resource

Free(T)

abstract
public abstract void Free(T resource)
Returns a resource to the pool

Parameters

resourceT