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

Method abort

out/cli.cjs:12156–12164  ·  view source on GitHub ↗

* Aborts the stream, signaling that the producer can no longer successfully write to the stream and it is to be * immediately moved to an errored state, with any queued-up writes discarded. This will also execute any abort * mechanism of the underlying sink. * * T

(reason = void 0)

Source from the content-addressed store, hash-verified

12154 * the stream) if the stream is currently locked.
12155 */
12156 abort(reason = void 0) {
12157 if (!IsWritableStream(this)) {
12158 return promiseRejectedWith(streamBrandCheckException$2("abort"));
12159 }
12160 if (IsWritableStreamLocked(this)) {
12161 return promiseRejectedWith(new TypeError("Cannot abort a stream that already has a writer"));
12162 }
12163 return WritableStreamAbort(this, reason);
12164 }
12165 /**
12166 * Closes the stream. The underlying sink will finish processing any previously-written chunks, before invoking its
12167 * close behavior. During this time any further attempts to write will fail (without erroring the stream).

Callers

nothing calls this directly

Calls 5

IsWritableStreamFunction · 0.85
promiseRejectedWithFunction · 0.85
IsWritableStreamLockedFunction · 0.85
WritableStreamAbortFunction · 0.85

Tested by

no test coverage detected