ObjectPool.

GetCurrentPool<T>() Method

Summary

Returns the pool currently creating a new item, or null at all other times. This allows the created item's constructor to determine which pool it came from (if any).

Also registers the Weaver.IPoolable.OnRelease of T as the Weaver.ObjectPool`1.OnRelease callback if nothing was previously registered.
Assembly
Weaver.dll
Namespace
Weaver
Containing Type
ObjectPool

Syntax

public static ObjectPool<T> GetCurrentPool<T>() where T : class, IPoolable

Type Parameters

Name Description
T

Return Value

Type Description
ObjectPool<T>