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

Method cancel

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

10807 * If the reader is active, behaves the same as {@link ReadableStream.cancel | stream.cancel(reason)}.
10808 */
10809 cancel(reason = void 0) {
10810 if (!IsReadableStreamDefaultReader(this)) {
10811 return promiseRejectedWith(defaultReaderBrandCheckException("cancel"));
10812 }
10813 if (this._ownerReadableStream === void 0) {
10814 return promiseRejectedWith(readerLockException("cancel"));
10815 }
10816 return ReadableStreamReaderGenericCancel(this, reason);
10817 }
10818 /**
10819 * Returns a promise that allows access to the next chunk from the stream's internal queue, if available.
10820 *

Callers

nothing calls this directly

Tested by

no test coverage detected