ReadableStream
インターフェイスの locked
読み取り専用プロパティは、読み取り可能なストリームがリーダーにロックされているかどうかを返します。
構文
var locked =
readableStream.locked;
値
読み取り可能なストリームがロックされているかどうかを示す Boolean
。
例
const stream = new ReadableStream({
...
});
const reader = stream.getReader();
stream.locked
// ストリームがリーダーにロックされているため、true を返すべきです
仕様
仕様 | 状態 | コメント |
---|---|---|
Streams locked の定義 |
現行の標準 | 初期定義 |
ブラウザーの互換性
BCD tables only load in the browser
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.