https://kotlinlang.org logo
Title
p

Paul Woitaschek

02/28/2018, 12:52 PM
@elizarov What do you think about my suggestion to install an rx exception handler to all
rxXYZ
methods?
e

elizarov

02/28/2018, 2:18 PM
Answered in thread on github
p

Paul Woitaschek

02/28/2018, 2:36 PM
What do you mean by static initialization?
e

elizarov

02/28/2018, 2:43 PM
How do you install Rx exception handler that gets invoked by
RxJavaPlugins.onError
?
p

Paul Woitaschek

02/28/2018, 2:56 PM
By adding it to the supplied context
e

elizarov

02/28/2018, 2:57 PM
The question is how the code that is invoked by
RxJavaPlugins.onError
gets determined?
p

Paul Woitaschek

02/28/2018, 3:01 PM
How would you solve this differently?
I mean the exception cannot be delivered inside the normal flow, by its strucutre there are always situations where an error can't be delivered
That's why they invented the error handler.
So I would expect that undeliverable exceptions in the coroutine-rx land there too
e

elizarov

02/28/2018, 3:03 PM
This rx-coroutines boundary is shaky. Why they should not be processed in the way that is the default for coroutines?
Currently, they get delivered to
CoroutinesExceptionHandler
.
p

Paul Woitaschek

02/28/2018, 3:13 PM
Because they get used in the rx flow