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
interface Observer {
// Receives the subscription object when `subscribe` is called
start(subscription : Subscription);
// Receives the next value in the sequence
next(value);
// Receives the sequence error
error(errorValue);
// Receives a completion notification
complete();
}
In the
Function arguments
suite there is a test that requires thecomplete
callback to take a value (https://github.com/tc39/proposal-observable/blob/master/test/subscribe.js#L41), however, theObserver
interface does not specify it should take a value.Moreover, the body of the Specification also indicates that it should not take a value (https://tc39.github.io/proposal-observable/#subscription-observer-prototype-complete).
So, what is valid? The test or the specification? Also, can we update the incorrect instances?
The text was updated successfully, but these errors were encountered: