You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 onError is supposed to act like throwing an exception which unravels the stack immediately and discards all state, including data in queues.
This is based on Rx Design Guideline 6.6:
6.6. OnError messages should have abort semantics
As normal control flow in .NET uses abort semantics for exceptions (the stack is unwound, current code path is interrupted), Rx mimics this behavior. To ensure this behavior, no messages should be sent out by an operator once one of it sources has an error message or an exception is thrown within the operator.
The text was updated successfully, but these errors were encountered:
Verified that in .NET onError does not cut the line, but I do think it makes sense to "follow the design guidelines", and for the delayed error behavior add an overload observeOnDelayError (since you may want to receive all values at the other end of the observeOn.
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
onError
is supposed to act like throwing an exception which unravels the stack immediately and discards all state, including data in queues.This is based on Rx Design Guideline 6.6:
The text was updated successfully, but these errors were encountered: