Crates.io | lazy-pool |
lib.rs | lazy-pool |
version | 2.0.0 |
source | src |
created_at | 2018-02-09 08:58:01.840612 |
updated_at | 2023-07-19 05:26:05.293419 |
description | Experimental lazy object pool |
homepage | |
repository | https://github.com/behos/lazy-pool |
max_upload_size | |
id | 50316 |
size | 29,840 |
A lazy-initialized object pool. Provides a sharable pool where objects are initialized on demand. The pool works by providing Futures which allow for usage with async/await (untested) and threading as well.
See tests for examples of usage
get
macro to be used as the main means of acquiring and using an item.Pooled
wrapper. This drops the item from the pool instead of releasing it.