-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Closed
Milestone
Description
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.
Metadata
Metadata
Assignees
Labels
No labels