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

Method releaseLock

out/cli.cjs:10853–10861  ·  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

10851 * do so will throw a `TypeError` and leave the reader locked to the stream.
10852 */
10853 releaseLock() {
10854 if (!IsReadableStreamDefaultReader(this)) {
10855 throw defaultReaderBrandCheckException("releaseLock");
10856 }
10857 if (this._ownerReadableStream === void 0) {
10858 return;
10859 }
10860 ReadableStreamDefaultReaderRelease(this);
10861 }
10862 }
10863 Object.defineProperties(ReadableStreamDefaultReader2.prototype, {
10864 cancel: { enumerable: true },

Callers

nothing calls this directly

Tested by

no test coverage detected