Add a disposer
keyword for disposal methods
#1459
Labels
addition/proposal
New features or enhancements
needs implementer interest
Moving the issue forward requires implementers to express interest
What problem are you trying to solve?
https://github.com/tc39/proposal-explicit-resource-management is stage 3, with at least V8 starting to ship. Standards should be able to integrate with that with their existing disposer methods.
What solutions exist today?
Many standards have methods like
.close()
,.abort()
, and so on.How would you solve it?
Add a
disposer
keyword that interfaces can use to alias a method toSymbol.dispose
, and a similarasync_disposer
forSymbol.asyncDispose
.async_disposer
s must return promises.For a few examples:
Anything else?
No response
The text was updated successfully, but these errors were encountered: