You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi everyone, I have a use case in my code that uses reactive messaging. In the code I need to fetch multiple items as Multi, handle each one of them (one message contains array of data) and them acknowledge the message. When I set Multi as a type returned from method annotated with @incoming I received an error. My workaround for now is that I do something like:
that would just discard all the items from Multi and emit empty event after completing a stream so there is something that can be subscribed after completing all work
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone, I have a use case in my code that uses reactive messaging. In the code I need to fetch multiple items as Multi, handle each one of them (one message contains array of data) and them acknowledge the message. When I set Multi as a type returned from method annotated with @incoming I received an error. My workaround for now is that I do something like:
but I was wondering if there is any other way to either accept a Multi, or maybe there exist a method like:
that would just discard all the items from Multi and emit empty event after completing a stream so there is something that can be subscribed after completing all work
Beta Was this translation helpful? Give feedback.
All reactions