Question on how to Cleanup on Errors in .collect().in() #629
-
Hi, first off I have to state I really like the effort you put into making Mutiny so readable ❤️ ! My question is, if the following text describes excepted usage (or maybe I miss something?): If i want to use my CollectorThatNeedsToBeCleanedUp (for Example delete a internal TempFile and close a session) the I'm asking because a "Subscriber" Interface that automatically requests(1) after onNext would be the sweet spot for me (at least i think so) but I didn't find something like this. Example: Collector that needs to be closed
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
There is no such operator but you might be able to do something with the Or perhaps you can rewrite in a |
Beta Was this translation helpful? Give feedback.
-
(and thanks for the nice words!) |
Beta Was this translation helpful? Give feedback.
There is no such operator but you might be able to do something with the
Uni
returned byin(supplier, accumulator)
.Or perhaps you can rewrite in a
transformToUni
of some kind?