More...
|
| | PoolItem (T instance, Action< T > onRelease, IPool< T > owner) |
| | Constructs a PooledItem around the provided instance of T.
|
| |
| bool | TryLock (int maxWaitMilliseconds) |
| | Locks the pooled item for usage; disposing this pooled item container releases the lock.
|
| |
|
void | Dispose () |
| | Releases the instance back to the pool.
|
| |
|
| T | Instance [get] |
| | The instance of the pooled item.
|
| |
| bool | IsAvailable [get] |
| | Flag: is this instance available for usage.
|
| |
◆ PoolItem()
Constructs a PooledItem around the provided instance of T.
- Parameters
-
◆ TryLock()
◆ Instance
◆ IsAvailable
The documentation for this class was generated from the following file:
- source/Utils/PeanutButter.Utils/Pool.cs