releaseLock method
The releaseLock method releases the reader's lock on the corresponding stream.After the lock is released, the reader is no longer active and the steam can be read by another reader.
Syntax
ReadableStreamReader.releaseLock();
Parameters
This method has no parameters.
Return value
This method does not return a value.
Standards information
Remarks
A reader’s lock cannot be released while it still has a pending read request. Attempting to do so will throw a TypeError and leave the reader locked to the stream.