-
Notifications
You must be signed in to change notification settings - Fork 143
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
Multiple threads concurrently execute SubscribeAsync function #144
Comments
@guessmyname - yes. |
Would it be possible to make that configurable? I have a use case where I On Nov 11, 2016 4:39 PM, "pardahlman" notifications@github.com wrote:
|
It is not something that I plan to add as a configuration option. What is your scenario? If you want to act on multiple messages in sequence, perhaps the If this does not suit you, I would suggest that you create a custom implementation of Hope this helps! |
Yes, that helps. Thanks for the suggestion. On Nov 12, 2016 8:28 AM, "pardahlman" notifications@github.com wrote:
|
No problems -- good luck! |
I had a similar problem and I managed that by using a Semaphore in the SubscribeAsync ... is that bad?
|
Hello @LDonato - you should be fine with the semaphore (or perhaps even TPL), even though performance wise I think it would make more sense to register a custom |
Thanks for your reply! |
If you're on 2.x, you could use the |
Thanks for your kind help! |
When I publish multiple messages to a queue I notice that the function passed to SubscribeAsync is being called by multiple threads, sometimes concurrently. This behavior is different than when using the RabbitMQ client. Is this by design?
The text was updated successfully, but these errors were encountered: