MCPcopy Index your code
hub / github.com/di-sukharev/opencommit / releaseLock

Method releaseLock

out/cli.cjs:11979–11987  ·  view source on GitHub ↗

* Releases the reader's lock on the corresponding stream. After the lock is released, the reader is no longer active. * If the associated stream is errored when the lock is released, the reader will appear errored in the same way * from now on; otherwise, the reader will appear clo

()

Source from the content-addressed store, hash-verified

11977 * do so will throw a `TypeError` and leave the reader locked to the stream.
11978 */
11979 releaseLock() {
11980 if (!IsReadableStreamBYOBReader(this)) {
11981 throw byobReaderBrandCheckException("releaseLock");
11982 }
11983 if (this._ownerReadableStream === void 0) {
11984 return;
11985 }
11986 ReadableStreamBYOBReaderRelease(this);
11987 }
11988 }
11989 Object.defineProperties(ReadableStreamBYOBReader2.prototype, {
11990 cancel: { enumerable: true },

Callers

nothing calls this directly

Tested by

no test coverage detected