MCPcopy Create free account
hub / github.com/nodejs/node / read

Method read

test/fixtures/wpt/streams/resources/rs-utils.js:157–165  ·  view source on GitHub ↗
(cb)

Source from the content-addressed store, hash-verified

155 }
156
157 read(cb) {
158 this._exec(() => {
159 if (++this.current <= this.limit) {
160 cb(null, false, this.current);
161 } else {
162 cb(null, true, null);
163 }
164 });
165 }
166
167 close(cb) {
168 this._exec(() => {

Callers 15

read_and_gcFunction · 0.45
idlharness.any.jsFile · 0.45
strategies.any.jsFile · 0.45
general.any.jsFile · 0.45
sizeFunction · 0.45

Calls 1

cbFunction · 0.50

Tested by

no test coverage detected