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

Function read

lib/internal/webstreams/adapters.js:603–615  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

601 signal,
602
603 read() {
604 PromisePrototypeThen(
605 reader.read(),
606 (chunk) => {
607 if (chunk.done) {
608 // Value should always be undefined here.
609 readable.push(null);
610 } else {
611 readable.push(chunk.value);
612 }
613 },
614 (error) => destroy(readable, error));
615 },
616
617 destroy(error, callback) {
618 function done() {

Callers

nothing calls this directly

Calls 3

destroyFunction · 0.70
readMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…