ReactiveX/rxjs

Windows from `windowX` operators shouldn't throw if subscribed to "late"

benlesh opened this issue · 1 comments

We have a test confirming that if you subscribe to a window after the parent subscription has been unsubscribed it should throw an ObjectUnsubscribedError. That honestly doesn't make any sense:

  1. It's a corner case with an esoteric operator (we only test it in windowToggle) I doubt most people hit.
  2. It doesn't make sense. The window is complete it's not an error.
  3. It seems to be a side effect of an implementation detail of Subject#asObservable where Subject "knows" about Observable#source.

I want to faze out Observable#lift for v9 (and by proxy Observable#operator and Observable#source), and this is sort of in the way.

CORE TEAM: There's problems with the whole ObjectUnsubscribedError in general. Will file another issue.