Skip to main content

Module pool

Module pool 

Source
Expand description

A dynamically-growing pool that leases exclusive, reusable single-cell items. A dynamically-growing pool of single-cell items handed out as exclusive, non-cloneable handles.

Structs§

LeaseHandle
Handle to a pooled item. Reclaims the value and frees its slot when dropped.
LeasePool
Pool of reusable values with single-cell items that are not cloneable.

Traits§

Reclaim
Resets a pooled value so the pool can hand it out again.