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
| Name | Description |
|---|---|
| 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
| Type | Description |
|---|---|
| Mirage.AutoPool.Wrapper<> |
Take(out T)
Declaration
public static AutoPool<T>.Wrapper Take(out T item)
Parameters
| Type | Name | Description |
|---|---|---|
| T | item |
Returns
| Type | Description |
|---|---|
| Mirage.AutoPool.Wrapper<> |