java.lang.Object
io.smallrye.mutiny.groups.Gatherer.FinalizerStep<I,ACC,O>
- Type Parameters:
I- the type of the items emitted by the upstreamACC- the type of the accumulatorO- the type of the items emitted to the downstream
The third step in the builder to gather items emitted by a
Multi into an accumulator.-
Method Summary
-
Method Details
-
finalize
Specifies the finalizer function.The finalizer function is used to emit the final value upon completion of the upstream and when there are no more items that can be extracted from the accumulator. When the finalizer function returns an empty
Optional, no value is emitted before the completion signal. When the finalizer function returns a non-emptyOptional, the value is emitted before the completion signal.
-