proposal-explicit-resource-management
proposal-explicit-resource-management copied to clipboard
ECMAScript Explicit Resource Management
I have been following the proposal and after doing some research I wanted to confirm that the status info I have found is accurate. This is what I found so...
I think, it could be a great addition to have a static `run` (not contractual name) method on `DisposableStack / AsyncDisposableStack`. #### Definition: ```ts class AsyncDisposableStack { // NOT SURE...
I'd like to be able to implement a timeout or TaskGroup context manager like in Trio/asyncio: ```javascript import sleep from 'effection'; function* example () { using* tg = new TaskGroup();...
Suppose I'm writing a function that subscribes to some notifications and returns an all-in-one `Disposable` so the caller can unsubscribe all of them with one call. With `DisposableStack.use` (or `DisposableStack.defer`),...
I don't understand the details of proposals very well, but is this the equivalent of a const declaration? I'm assuming that's supposed to be the case, but I couldn't find...
The idea is that this... ```js class C { using a = foo(); using #b = bar(); await using c = baz(); await using #d = thing(); } ``` ...is...
(discovered in https://bugzilla.mozilla.org/show_bug.cgi?id=1934205 ) In the proposal, `ForInOfStatement` definition is modified and the `using` handling is added into `ForDeclaration` with `[Using]` parameter, where the parameter is set only after a...
AS A Node.js developer I WANT to not spend more wall-clock time disposing of async resources than necessary SO THAT my applications do not feel sluggish compared to other languages...
I've come to the conclusion that `using`, as defined in this proposal, does not belong in the language. `using` adds additional complexity to the language with no clear benefits over...