Skip to content
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

Invocations of Channel#basicPublish is blocking #179

Closed
viartemev opened this issue Mar 19, 2019 · 3 comments
Closed

Invocations of Channel#basicPublish is blocking #179

viartemev opened this issue Mar 19, 2019 · 3 comments
Labels
enhancement New feature or request
Milestone

Comments

@viartemev
Copy link
Owner

Invocations of Channel#basicPublish is blocking if a resource-driven alarm is in effect.
We need to add default timeout and ability to set up this timeout in consumer.

@viartemev viartemev added the enhancement New feature or request label Mar 19, 2019
@viartemev viartemev added this to the 0.1.0 milestone Mar 19, 2019
@ghost
Copy link

ghost commented Mar 27, 2019

An ideal solution would be to have a cancellable coroutine, but I am afraid the only way to interrupt this blocking call is to close the channel.

@viartemev
Copy link
Owner Author

@Wrover There is withTimeout method, we can use it with default timeout and provide a way to set it up. Another option is blocking connections notification

@ghost
Copy link

ghost commented Mar 27, 2019

The latter is worthwhile, I'll read it. Regarding withTimeout I am still struggling writing a working example. Take a look if you wonder -- https://gist.github.com/wrover/0becefe45bcc1d6110be96e1e6354f26

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant