Retrieves an item from the pool in a Managed
effect.
Retrieves an item from the pool in a Managed
effect. Note that if
acquisition fails, then the returned effect will fail for that same reason.
Retrying a failed acquisition attempt will repeat the acquisition attempt.
Invalidates the specified item.
Invalidates the specified item. This will cause the pool to eventually reallocate the item, although this reallocation may occur lazily rather than eagerly.
A
ZPool[E, A]
is a pool of items of typeA
, each of which may be associated with the acquisition and release of resources. An attempt to get an itemA
from a pool may fail with an error of typeE
.