https://github.com/runningcode/rx-single-error
Rx Single Error Handling
https://github.com/runningcode/rx-single-error
Last synced: 12 months ago
JSON representation
Rx Single Error Handling
- Host: GitHub
- URL: https://github.com/runningcode/rx-single-error
- Owner: runningcode
- Created: 2019-03-21T14:00:34.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-03-21T14:08:16.000Z (about 7 years ago)
- Last Synced: 2025-06-21T23:29:53.662Z (12 months ago)
- Language: Java
- Size: 52.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Rx Single Error Handling
This shows a repro case for https://github.com/ReactiveX/RxJava/issues/6438
In this case the same exact code will crash the app when using `Observable.fromCallable` but not when using `Single.fromCallable`.
The effect is that fatal exceptions thrown in the on error message like `VirtualMachineError`s and `OutOfMemoryError`s will be silently swallowed.
Workaround is to avoid using `Single.fromCallable` and replace it with `Observable.fromCallable`.