Baseline Widely available
Note: This feature is available in Web Workers.
The releaseLock()
method of the WritableStreamDefaultWriter
interface releases the writer's lock on the corresponding stream. After the lock is released, the writer is no longer active. If the associated stream is errored when the lock is released, the writer will appear errored in the same way from now on; otherwise, the writer will appear closed.
None.
Return valueNone (undefined
).
const writableStream = new WritableStream(
{
write(chunk) {
// â¦
},
close() {
// â¦
},
abort(err) {
// â¦
},
},
queuingStrategy,
);
// â¦
const writer = writableStream.getWriter();
// â¦
// release writer's lock on the stream when desired
writer.releaseLock();
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