Add support for the "using" keyword and resource management #4325
Closed
jdgriffith
started this conversation in
Ideas
Replies: 2 comments 2 replies
-
Is there any progress on this? |
Beta Was this translation helpful? Give feedback.
2 replies
-
Implemented in Bun v1.0.23 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
For reference: https://devblogs.microsoft.com/typescript/announcing-typescript-5-2/#using-declarations-and-explicit-resource-management
Examples:
And
await using ...
If this is already supported, then awesome! But if not, I feel this will be a key feature going forward for those of us concerned about performance and having control (in the least amount of code) of memory and such.
Beta Was this translation helpful? Give feedback.
All reactions