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

Method cancel

out/cli.cjs:11911–11919  ·  view source on GitHub ↗

* If the reader is active, behaves the same as ReadableStream.cancel | stream.cancel(reason).

(reason = void 0)

Source from the content-addressed store, hash-verified

11909 * If the reader is active, behaves the same as {@link ReadableStream.cancel | stream.cancel(reason)}.
11910 */
11911 cancel(reason = void 0) {
11912 if (!IsReadableStreamBYOBReader(this)) {
11913 return promiseRejectedWith(byobReaderBrandCheckException("cancel"));
11914 }
11915 if (this._ownerReadableStream === void 0) {
11916 return promiseRejectedWith(readerLockException("cancel"));
11917 }
11918 return ReadableStreamReaderGenericCancel(this, reason);
11919 }
11920 read(view, rawOptions = {}) {
11921 if (!IsReadableStreamBYOBReader(this)) {
11922 return promiseRejectedWith(byobReaderBrandCheckException("read"));

Callers

nothing calls this directly

Calls 5

promiseRejectedWithFunction · 0.85
readerLockExceptionFunction · 0.85

Tested by

no test coverage detected