Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
observeOn schedules onError ... should it jump the line? #1680
onError events are put on the queue so they get emitted on the scheduled thread ... but they are at the end of the onNext events. Should they instead "jump the line"?
I think yes as an
This is based on Rx Design Guideline 6.6:
This was referenced
Sep 11, 2014
The design guidelines are not clear enough to make a decision as to how this should behave.
Consider this use case:
source.map(t -> r).observeOn(s).map(t -> slowR).subscribe(o)
Should the onError "cut the line" as soon as it happens, or should it wait?
In this example it can take a long time to get through the queue due to the slow map function after the observeOn.
Verified that in .NET