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
It would be useful for the Observable class to support the upcoming Symbol.dispose or Symbol.asyncDispose mechanism (TC39 Explicit Resource Management proposal) such that when the Observable is disposed while still active, any outstanding subscriptions and closed and outstanding promises are rejected.
using obs1 = eventTarget.on('foo');
using obs2 = Observable.from(asyncIterable);
This is particularly helpful in cases where a block of code may wish to only temporarily attach itself to a particular event source (like an EventTarget that long outlives the Observable)
The text was updated successfully, but these errors were encountered:
It would be useful for the
Observable
class to support the upcomingSymbol.dispose
orSymbol.asyncDispose
mechanism (TC39 Explicit Resource Management proposal) such that when theObservable
is disposed while still active, any outstanding subscriptions and closed and outstanding promises are rejected.This is particularly helpful in cases where a block of code may wish to only temporarily attach itself to a particular event source (like an
EventTarget
that long outlives theObservable
)The text was updated successfully, but these errors were encountered: