-
Notifications
You must be signed in to change notification settings - Fork 138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for Pool::get
with timeout
#9
Comments
I currently wonder wether I should add a async fn get_timeout(&self,
create_timeout: Option(Duration),
wait_timeout: Option(Duration),
recycle_timeout: Option(Duration))
For most applications I guess |
I think this feature was only added to managed pools? I think this would be beneficial for unmanaged ones too. Or do you not think so? If so, why? |
Unmanaged pools don't recycle and create new objects. Thus only Feel free to open a new issue so we can discuss this. |
my lib not use tokio . use async-st, when add this config
|
That's a bummer. I thought Could you please open a new issue regarding this issue? I don't use |
I currently wonder if it should be part of the core of deadpool:
Adding a timeout to the
Pool::get
function should be as simple as wrapping the call in one of the following two:There is little to be gained when using
Pool::get_timeout()
overtimeout(Pool::get())
, is there?The text was updated successfully, but these errors were encountered: