Deadpool is a dead simple async pool for connections and objects of any type.
This crates provides helpers for writing pools for objects that don’t support async and need to be run inside a thread.
Note: This crate is intended for making the development of
deadpool-*
crates easier. Other libraries and binary projects
normally should not use this directly and use some provided
reexports by the crates using it.
Feature | Description | Extra dependencies | Default |
---|---|---|---|
tracing | Enable support for tracing by propagating Spans in the interact() calls. Enable this if you use the tracing crate and you want to get useful traces from within interact() calls. | tracing | no |
Licensed under either of
at your option.
deadpool
crate itself.SyncWrapper::lock
or
SyncWrapper::try_lock
. This is basicly just a wrapper around
a MutexGuard
but hides some implementation details.SyncWrapper::interact()
fails.