A generic resource pool for the Tokio ecosystem.
See the documentation hosted on docs.rs.
There is another resource pool called bb8
. It has two significant differences.
The API is different. This library gives you a struct
that dereferences to your resource while bb8
turns a closure from a resource to a Future
that yields the resource back.
Reaping is done differently. This library reaps resources as soon as they are returned, while bb8
reaps them at a given interval.