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

Method getWriter

out/cli.cjs:12193–12198  ·  view source on GitHub ↗

* Creates a WritableStreamDefaultWriter | writer and locks the stream to the new writer. While the stream * is locked, no other writer can be acquired until this one is released. * * This functionality is especially useful for creating abstractions that desire the

()

Source from the content-addressed store, hash-verified

12191 * the same time, which would cause the resulting written data to be unpredictable and probably useless.
12192 */
12193 getWriter() {
12194 if (!IsWritableStream(this)) {
12195 throw streamBrandCheckException$2("getWriter");
12196 }
12197 return AcquireWritableStreamDefaultWriter(this);
12198 }
12199 }
12200 Object.defineProperties(WritableStream2.prototype, {
12201 abort: { enumerable: true },

Callers

nothing calls this directly

Calls 3

IsWritableStreamFunction · 0.85

Tested by

no test coverage detected