Chaining nested Async actions from Multi to Uni... #1176
Unanswered
rafaeltuelho
asked this question in
Q&A
Replies: 1 comment 1 reply
-
See https://smallrye.io/smallrye-mutiny/2.0.0/tutorials/transforming-items-asynchronously/#transforming-items-from-multi-the-merge-vs-concatenate-dilemma and you can also use shortcut methods: |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've an unusual scenario where I need to chain a set of actions (async) starting from a
Multi<T>
and ending by returning aUni<Void>
...full code here: https://github.com/rafaeltuelho/quarkus-super-heroes/blob/fighting-with-super-power/rest-heroes/src/main/java/io/quarkus/sample/superheroes/hero/service/HeroService.java
I can't understand why Muti.transformToUni() return a MultiFlatten<O, T>...
I would appreciate it if someone could help me understand why I'm getting a
MultiFlatten<O, T>
here. i woudl expect Multi.tranformToUni infer from my last nested return type, which is aUni<Void>
in my case...Beta Was this translation helpful? Give feedback.
All reactions