Get to know MDN better
このページはコミュニティーの尽力で英語から翻訳されました。MDN Web Docs コミュニティーについてもっと知り、仲間になるにはこちらから。
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Symbol.asyncDispose は静的データプロパティであり、ウェルノウンシンボルの Symbol.asyncDispose を表します。 await using 宣言は、変数の初期化子において、変数がスコープ外になった際に呼び出すメソッドとしてこのシンボルを検索します。
ウェルノウンシンボル Symbol.asyncDispose です。
| 書込可能 | 不可 |
| 列挙可能 | 不可 |
| 設定可能 | 不可 |
非同期に破棄可能な (async disposable) オブジェクトとは、 [Symbol.asyncDispose]() メソッドを備えたオブジェクトです。このメソッドは、以下のようなセマンティクスを持つことが期待されます。
[Symbol.dispose] により、独自の非同期に破棄可能なオブジェクトが作成できます。詳細については、await using を参照してください。
| ECMAScript Async Explicit Resource Management # table-1 |
Enable JavaScript to view this browser compatibility table.
This page was last modified on 2025年12月20日 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.