Lightweight object Pool for IAstarPooledObject.
Handy class for pooling objects of type T which implements the IAstarPooledObject interface.
Claim a new object using
SomeClass foo = ObjectPool<SomeClass>.Claim ();
Use it and do stuff with it
Release it with
After you have released a object, you should never use it again.
Since 3.7.6 this class is thread safe
Public Static Methods
T Claim ()
void Release (