Interface IPool<T>
Defines the contract for a class that stores and retrieves commonly used objects.
Namespace: Exiled.API.Features.Pools
Assembly: Exiled.API.dll
Syntax
public interface IPool<T>
Type Parameters
Name | Description |
---|---|
T | The type that is stored in the pool. |
Methods
| Improve this Doc View SourceGet()
Retrieves a stored object of type T
, or creates it if it does not exist.
Declaration
T Get()
Returns
Type | Description |
---|---|
T | The stored object, or a new object, of type |
Return(T)
Returns the object to the pool.
Declaration
void Return(T obj)
Parameters
Type | Name | Description |
---|---|---|
T | obj | The object to return, of type |