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

Method cancel

out/cli.cjs:13970–13978  ·  view source on GitHub ↗

* Cancels the stream, signaling a loss of interest in the stream by a consumer. * * The supplied `reason` argument will be given to the underlying source's UnderlyingSource.cancel | cancel() * method, which might or might not use it.

(reason = void 0)

Source from the content-addressed store, hash-verified

13968 * method, which might or might not use it.
13969 */
13970 cancel(reason = void 0) {
13971 if (!IsReadableStream(this)) {
13972 return promiseRejectedWith(streamBrandCheckException$1("cancel"));
13973 }
13974 if (IsReadableStreamLocked(this)) {
13975 return promiseRejectedWith(new TypeError("Cannot cancel a stream that already has a reader"));
13976 }
13977 return ReadableStreamCancel(this, reason);
13978 }
13979 getReader(rawOptions = void 0) {
13980 if (!IsReadableStream(this)) {
13981 throw streamBrandCheckException$1("getReader");

Callers

nothing calls this directly

Calls 5

IsReadableStreamFunction · 0.85
promiseRejectedWithFunction · 0.85
IsReadableStreamLockedFunction · 0.85
ReadableStreamCancelFunction · 0.85

Tested by

no test coverage detected