Hacker News new | ask | show | jobs
Explicit Resource Management in JavaScript (allthingssmitty.com)
2 points by AllThingsSmitty 143 days ago
1 comments

Similarly, explicit resource management in TypeScript is handled using the using declaration (and await using for asynchronous operations), introduced in TypeScript 5.2 as an implementation of a Stage 3 ECMAScript proposal: https://v8.dev/features/explicit-resource-management