[Suggestion] Use Symbol.dispose
to replace our own Disposable
#640
Labels
type:enhancement
New feature or request
Milestone
Pre-issue checklist
How can Tango be improved?
The Explicit resource management proposal adds primitives for disposable pattern.
However, using it requires a polyfill as browser support is not good now.
Symbol.dispose
andSymbol.asyncDispose
can be easily polyfilled, but not forDisposableStack
. I also don't like https://github.com/es-shims/DisposableStack, I don't need a ES3 compatible polyfill with millions of dependencies.How should the API change?
Add our own polyfills, and refactor disposables to use those primitives.
(Optional) Other information
No response
The text was updated successfully, but these errors were encountered: