You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First release of the PoolBuilder API, exposing settings like StartingSize, MaxSize and Supplier
A Supplier can now be specified to generate new values when the pool is empty. This allows values being generated to be affected by runtime configuration and decision-making rather than depending on values baked into the T values in a Pool<T>.
@Marwes added the ability to get values from the pool that are managed by a simple & instead of an Rc. This is now the default system represented by the Recycled type since it has the least overhead. The original behavior is retained in the RcRecycled smartpointer type.
Added benchmarks, tests for the new smartpointer.
Pool::with_size now takes a usize rather than a u32 to be consistent with std::collections.