Get to know MDN better
このページはコミュニティーの尽力で英語から翻訳されました。MDN Web Docs コミュニティーについてもっと知り、仲間になるにはこちらから。
Since March 2026, this feature works across the latest devices and browser versions. This feature might not work in older devices or browsers.
closed は ReadableStreamBYOBReader インターフェイスの読み取り専用プロパティで、ストリームが閉じられた場合、またはリーダーのロックが解除された場合に履行され、ストリームがエラーの場合は拒否されるプロミスを返します。
このプロパティにより、ストリーミング処理の終わりに応答するコードを書くことができます。
Promise です。
下記コードは BYOBReader の閉じられたかエラーかの状態を処理するパターンを示します。
| Streams # ref-for-generic-reader-closed② |
Enable JavaScript to view this browser compatibility table.
This page was last modified on 2023年9月26日 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.