MCPcopy
hub / github.com/di-sukharev/opencommit / releaseLock

Method releaseLock

out/cli.cjs:12548–12557  ·  view source on GitHub ↗

* 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 clo

()

Source from the content-addressed store, hash-verified

12546 * other producers from writing in an interleaved manner.
12547 */
12548 releaseLock() {
12549 if (!IsWritableStreamDefaultWriter(this)) {
12550 throw defaultWriterBrandCheckException("releaseLock");
12551 }
12552 const stream4 = this._ownerWritableStream;
12553 if (stream4 === void 0) {
12554 return;
12555 }
12556 WritableStreamDefaultWriterRelease(this);
12557 }
12558 write(chunk = void 0) {
12559 if (!IsWritableStreamDefaultWriter(this)) {
12560 return promiseRejectedWith(defaultWriterBrandCheckException("write"));

Callers

nothing calls this directly

Tested by

no test coverage detected