Emitter - Errors Sending Messages #2249
josephearl
started this conversation in
General
Replies: 2 comments
-
Actually I must have been blind, can see this is now mentioned https://smallrye.io/smallrye-reactive-messaging/4.9.0/concepts/emitter/#emitter-and-channel |
Beta Was this translation helpful? Give feedback.
0 replies
-
Re-opening: How would you do the same when sending a Message? (the emitter |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The docs give this example of using an
Emitter
in imperative code:Should this not be something more like:
So that if the message fails to send an exception (in this case wrapped in an
ExecutionException
) is thrown from the imperative code?However this does have the side-effect of slowing down sending messages from imperative code - the method only returns once the message is sent.
Beta Was this translation helpful? Give feedback.
All reactions