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() constructor.

Dictionary 0

Papers 0

Developer library 6

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

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

AsyncDisposableStack.prototype.move()

The **`move()`** method of AsyncDisposableStack instances creates a new `AsyncDisposableStack` instance that contains the same disposers as this stack, and then marks this stack as disposed, without calling any disposers. ## Syntax ```js-nolint move() ``` ### Parameters None. ### Return value A new AsyncDisposableStack instance. ### Exceptions - ReferenceError - : Thrown if the stack is already disposed. #

DisposableStack

features/ecmascript/explicit-resource-management) - [JavaScript resource management](/docs/Web/JavaScript/Guide/Resource_management) - Symbol.dispose - using - AsyncDisposableStack

JSON results · Services directory