WritableStream: locked プロパティ
locked
は WritableStream
インターフェイスの読み取り専用プロパティは、 WritableStream
がライターにロックされているかどうかを示す論理値を返します。
値
論理値で、書き込み可能なストリームがロックされているかどうかを示します。
例
js
const writableStream = new WritableStream(
{
write(chunk) {
// ...
},
close() {
// ...
},
abort(err) {
// ...
},
},
queuingStrategy,
);
// ...
const writer = writableStream.getWriter();
writableStream.locked;
// ストリームがライターにロックされているため、true を返します
仕様書
Specification |
---|
Streams # ref-for-ws-locked② |
ブラウザーの互換性
Report problems with this compatibility data on GitHubdesktop | mobile | server | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
locked |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
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.