We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When a channel exception is thrown or channel is closed the Consumer's error or done callbacks are not invoked.
Consider:
var c = Client(); var chan = await c.channel(); var queue = await chan.queue("test123", autoDelete: true); var consumer = await queue.consume(noAck: true); consumer.listen((event) {print("queue: $event");}, onDone: (){print("consumer done");}, onError: (e){print("consumer error: $e");}, cancelOnError: true); try { await chan.queue("test456", passive: true); } on QueueNotFoundException { print("QueueNotFoundException will break the channel"); } await Future.delayed(Duration(seconds: 60));
In the above scenario the consumer done or consumer error are never emitted and the stream isn't closed.
consumer done
consumer error
It seems to me the channel exception handler should loop over all the consumer stream controllers, pass the error down and/or close the streams.
The text was updated successfully, but these errors were encountered:
Thanks for reporting this! A fix is on the way.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
When a channel exception is thrown or channel is closed the Consumer's error or done callbacks are not invoked.
Consider:
In the above scenario the
consumer done
orconsumer error
are never emitted and the stream isn't closed.It seems to me the channel exception handler should loop over all the consumer stream controllers, pass the error down and/or close the streams.
The text was updated successfully, but these errors were encountered: