GO-Ve01
ServicesDevelopersBooksDictionaryPapersWikidataEncyclopediaSearchBabelCareersDeck

Search e01

One query across the encyclopedia, books, dictionary, papers, Wikidata and the developer library. Every hit carries its source.

6 results across 6 corpora for AsyncDisposableStack.

Developer library 6

Firefox 141 release notes for developers

explicit [resource management](/docs/Web/JavaScript/Guide/Resource_management) API, which includes the using and await using declarations, the DisposableStack, AsyncDisposableStack, and SuppressedError objects, and the Symbol.dispose and Symbol.asyncDispose well-known symbols, is now supported. These features ensure automatic cleanup of resources such as file handles or stream readers when they go out of scope, reduc

JavaScript reference

ion objects - Iterator - AsyncIterator - Promise - GeneratorFunction - AsyncGeneratorFunction - Generator - AsyncGenerator - AsyncFunction - DisposableStack - AsyncDisposableStack ### Reflection - AbstractModuleSource - Reflect - Proxy ### Internationalization - Intl - Intl.Collator - Intl.DateTimeFormat - Intl.DisplayNames - Intl.DurationFormat - Intl.ListFormat - Intl.Locale - Intl.NumberFormat - Intl.PluralRu

MDN Web Docs mirror · CC BY-SA 2.5 (MDN) · https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference

await using

xamples where it may not behave how you expect. If you want to hand-manage resource disposal, while maintaining the same error handling guarantees, you can use AsyncDisposableStack instead. ## Examples You should also check using for more examples, especially some general caveats with respect to scope-based resource management. ### Basic usage Usually, you use `await using` on some library-provided resource that

Standard built-in objects

r example). - Iterator - AsyncIterator - Promise - GeneratorFunction - AsyncGeneratorFunction - Generator - AsyncGenerator - AsyncFunction - DisposableStack - AsyncDisposableStack ### Reflection - AbstractModuleSource - Reflect - Proxy ### Internationalization Additions to the ECMAScript core for language-sensitive functionalities. - Intl - Intl.Collator - Intl.DateTimeFormat - Intl.DisplayNames - Intl.Duration

AsyncDisposableStack

The **`AsyncDisposableStack`** object represents a stack of [async disposers](/docs/Web/JavaScript/Reference/Statements/await_using) to run when the stack itself is disposed. Disposer functions are executed in reverse order of registration, with strong error handling guarantees. Calling its `move()` method will transfer responsibility for calling the current registered disposers to a new `AsyncDisposableStack` and pr

AsyncDisposableStack() constructor

The **`AsyncDisposableStack()`** constructor creates AsyncDisposableStack objects. ## Syntax ```js-nolint new AsyncDisposableStack() ``` > [!NOTE] > `AsyncDisposableStack()` can only be constructed with [`new`](/docs/Web/JavaScript/Reference/Operators/new). Attempting to call it without `new` throws a TypeError. ### Parameters None. ### Return value A new `AsyncDisposableStack` object. ## Examples ### Creati

JSON results · Services directory