Skip to main content

Class AutoPool<T>

Pool class that will create a Disposable wrapper around T so it can be used with any class automatically without additional setup

Inheritance​
System.Object
Inherited Members​
Show
Syntax​
public static class AutoPool<T>
where T : class, new()
Type Parameters​
NameDescription
T

Fields​

Pool​

Default pool instance, safe to use on main thread

Declaration​
public static Pool<AutoPool<T>.Wrapper> Pool

Methods​

Take()​

Declaration​
public static AutoPool<T>.Wrapper Take()
Returns​
TypeDescription
Mirage.AutoPool.Wrapper<>