Baseline Widely available
Note: This feature is available in Web Workers.
The locked
read-only property of the WritableStream
interface returns a boolean indicating whether the WritableStream
is locked to a writer.
A boolean value indicating whether or not the writable stream is locked.
Examplesconst writableStream = new WritableStream(
{
write(chunk) {
// â¦
},
close() {
// â¦
},
abort(err) {
// â¦
},
},
queuingStrategy,
);
// â¦
const writer = writableStream.getWriter();
writableStream.locked;
// should return true, as the stream has been locked to a writer
Specifications Browser compatibility
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4