Hacker News new | ask | show | jobs
by sureIy 592 days ago
What do you mean? You can definitely already wrap that into a Symbol.dispose-keyed object and use it via `using`
1 comments

`using` is not a thing in JS
Uh, you are wrong. It absolutely is a thing and it has been in your browser and Node for longer than a year.

https://github.com/nodejs/node/pull/48518 https://github.com/tc39/proposal-explicit-resource-managemen...