tc39 / proposal-observable

Observables for ECMAScript
https://tc39.github.io/proposal-observable/
3.06k stars 90 forks source link

Support [Symbol.dispose]() for unsubscribe() #215

Open WorldMaker opened 1 year ago

WorldMaker commented 1 year ago

Now that Symbol.dispose is the well-named function for disposing objects, it might be useful to adjust this proposal to reflect that and either rename unsubscribe() to [Symbol.dispose]() or suggest that they be linked in most implementations.

benlesh commented 1 year ago

I agree here. And to that end, RxJS is going to be doing this.