Interface IPool<T>
Interface provides that basic features of pool.
Namespace: MackySoft.XPool
Assembly: cs.temp.dll.dll
Syntax
public interface IPool<T> : IPool
Type Parameters
Name | Description |
---|---|
T | Type of instance to pool. |
Methods
Rent()
Return the pooled instance. If pool is empty, create new instance and returns it.
Declaration
T Rent()
Returns
Type | Description |
---|---|
T |
Return(T)
Return instance to the pool.
Declaration
void Return(T instance)
Parameters
Type | Name | Description |
---|---|---|
T | instance |