- Add passive version of the pool which does not use a
Manager
and requires all objects to be created upfront.
- Add
std::error::Error
implementation forPoolError
andRecycleError
. This makes it more convenient to use the?
operator.
- Replace
tokio::sync::mpsc::channel
bycrossbeam_queue::ArrayQueue
which gets rid of the mutex when fetching an object from the pool.
- Make
Pool::timeout_get
public
- Add support for timeouts
- Make fields of pool status public
- Fix possible deadlock and make implementation a lot simpler by using
the new tokio
Semaphore
andReceiver::try_recv
. - Add
Pool::try_get
andPool::timeout_get
functions
- Add
deadpool-lapin
to README - Add
deadpool-redis
to README - Fix possible stale state and deadlock if a future calling
Pool::get
is aborted. This is related to tokio-rs/tokio#1898 - Make recycling more robust by changing the
Manager::recycle
to a non consuming API.
- Add documentation for
docs.rs
- Remove
PoolInner
andPoolSize
struct from public interface - Improve example in
README.md
and crate root
- Update to
tokio 0.2
- Version skipped; only
tokio-postgres
was updated.
- Split
deadpool
anddeadpool-postgres
in separate crates instead of one with feature flags.
- First release