Skip to content

Block while waiting for connection #1527

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

Closed
maltalex opened this issue Feb 25, 2018 · 2 comments
Closed

Block while waiting for connection #1527

maltalex opened this issue Feb 25, 2018 · 2 comments

Comments

@maltalex
Copy link
Contributor

At the moment, the client throws an exception if there are no free channels when a new request arrives. That makes sense in many scenarios, but in some cases, for instance when working with a pool of connections against some external API, it would be nice to have an option to put such requests in a queue or even block the requesting thread until a connection is available.

@slandelle
Copy link
Contributor

AHC is async at its core, there's no way it will ever have a "blocking" feature.

I personally have zero usage for this, so I'll never implement such queueing system myself.

Contributions welcome

@slandelle slandelle changed the title Enhancment Request - block while waiting for connection Block while waiting for connection Mar 22, 2018
@slandelle
Copy link
Contributor

Idle for a long time, so closing.
Will reopen if needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants