-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix #1924 Discard elements of Collection in collect(), cover more cases
- Flux.collect(Supplier, BiConsumer) now detects if the container is of type Collection, in which case it discards each element in the collection when appropriate - the operator also now additionally discard the element T along the container when the collector function fails - Flux.collect(Collector) now also discards elements in a similar fashion to Flux.collect(Supplier, BiConsumer). The accumulator failure case and finisher Function failure case are taken into account. The discarding of individual elements inside a Collection is applied to the intermediate container, not the result of the finisher() Behavior change: if you extend Operators.MonoSubscriber, keep the following in mind: `discard(O v)` no longer nulls out the `this.value` field. Calling methods now need to do that themselves instead.
- Loading branch information
1 parent
f2b940c
commit a9eb446
Showing
7 changed files
with
355 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.