Crate lazy_pool

source ·
Expand description

Through lazy-pool you can create generic object pools which are lazily intitialized and use a performant deque in order to provide instances of the pooled objects The pool can be used in a threaded environment as well as an async environment See Pool documentation for more info




  • The factory trait is used to populate the Pool when items are created and replaced. There is a default implementation of factory for boxed sync closures, and creating an asynchronous factory is shown in this example:

Type Definitions