MCPcopy Index your code
hub / github.com/nodejs/node / cancel

Function cancel

lib/internal/blob.js:521–527  ·  view source on GitHub ↗
(reason)

Source from the content-addressed store, hash-verified

519 });
520 },
521 cancel(reason) {
522 // Reject any currently pending pulls here.
523 for (const pending of this.pendingPulls) {
524 pending.reject(reason);
525 }
526 this.pendingPulls = [];
527 },
528 // We set the highWaterMark to 0 because we do not want the stream to
529 // start reading immediately on creation. We want it to wait until read
530 // is called.

Callers

nothing calls this directly

Calls 1

rejectMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…