-
Notifications
You must be signed in to change notification settings - Fork 183
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Publisher#timeout always propagate TimeoutException (#2555)
Motivation: Publisher#timeout operator is inconsistent with Single and Completable timeout operators in that when a timeout triggers it will not ensure the timeout exception is propagated. It is possible for upstream to propagate a different exception even though the source of the error is a timeout exception. Modifications: - Enhance ConcurrentTerminalSubscriber to allow for external termination and take advantage of that in Publisher#timeout. - Add tests for Completable and Single timeout operators to ensure existing expected behavior doesn't regress.
- Loading branch information
1 parent
041f3dc
commit de05283
Showing
5 changed files
with
130 additions
and
35 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