Closed
Description
I think this is a bug. Currently RxJS 5 Subjects cannot be used as Observers in source.subscribe(subject)
, even though Subject implements the Observer interface.
// Rx 5
observable.subscribe(
subject.next.bind(subject),
subject.error.bind(subject),
subject.complete.bind(subject)
)
//Rx 4
observable.subscribe(subject.asObserver())
This should be simple to fix, but should be accompanied by tests too.