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()
PeanutButter.Utils.PoolItem< T >.PoolItem |
( |
T | instance, |
|
|
Action< T > | onRelease, |
|
|
IPool< T > | owner ) |
Constructs a PooledItem around the provided instance of T.
- Parameters
-
◆ TryLock()
bool PeanutButter.Utils.PoolItem< T >.TryLock |
( |
int | maxWaitMilliseconds | ) |
|
◆ Instance
T PeanutButter.Utils.PoolItem< T >.Instance |
|
get |
◆ IsAvailable
bool PeanutButter.Utils.PoolItem< T >.IsAvailable |
|
get |
The documentation for this class was generated from the following file:
- source/Utils/PeanutButter.Utils/Pool.cs