-
Notifications
You must be signed in to change notification settings - Fork 184
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
…3045) Motivation: Currently, `RepeatWhenSingle` uses its own static `END_REPEAT_EXCEPTION` object as an end marker. That static exception does not discard suppressed exceptions. If under any circumcises it unintentionally leaks, it may cause a memory leak if some path adds suppressed exceptions to it. Also, it's inconsistent with `RepeatStrategies`. Modifications: - Use `RepeatStrategies.TerminateRepeatException` instead that discards suppressed exceptions and doesn't write stacktrace. - Cache failed `Completable` with `TerminateRepeatException` instance instead of allocating a new one on every repeat check. Result: 1. Avoids static exception instance that may attach suppressed exceptions. 2. Consistency between all repeat operators and strategies.
- Loading branch information
1 parent
977ac05
commit edb05b5
Showing
3 changed files
with
7 additions
and
9 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