tokio-resource-pool

Crates.iotokio-resource-pool
lib.rstokio-resource-pool
version0.5.0-alpha.1
sourcesrc
created_at2019-05-22 20:16:47.709991
updated_at2019-09-22 14:54:11.412322
descriptionA generic resource pool for the Tokio ecosystem.
homepage
repositoryhttps://github.com/animalsiknow/tokio-resource-pool
max_upload_size
id136148
size29,468
Simon GĂ©nier (kolmogorov-fan-account)

documentation

https://docs.rs/tokio-resource-pool

README

A generic resource pool for the Tokio ecosystem.

Documentation

See the documentation hosted on docs.rs.

Alternatives

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.

Commit count: 22

cargo fmt