Summary
If the `pool` isn't null this method gives the `item` to it and returns true.
- Assembly
- Weaver
.dll - Namespace
- Weaver
- Containing Type
- ObjectPool
Syntax
public static bool TryRelease<T>(this ObjectPool<T> pool, T item) where T : class
Type Parameters
Name | Description |
---|---|
T |
Parameters
Name | Type | Description |
---|---|---|
pool | ObjectPool |
|
item | T |
Return Value
Type | Description |
---|---|
bool |