-
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 #1853 Prevent Mono#using to trigger onNext+onError if cleanup fails
This commit slightly changes the behavior of Mono#using so that, in eager mode, the cleanup is applied inside `onNext`. Thus it is applied before the value is passed to downstream (which at this point is no longer in the protected scope of the `sourceSupplier`). This is done to prevent the case where the value would be passed down yet the cleanup throws, resulting in an invalid sequence of onNext then onError signals.
- Loading branch information
1 parent
df34ad9
commit 2d55d7d
Showing
3 changed files
with
409 additions
and
19 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
Oops, something went wrong.