const stream = new ReadableStream({
// …
});
const reader = stream.getReader();
stream.locked;
// should return true, as the stream has been locked to a readerReadableStream: locked property / notebook
ReadableStream: locked property
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.