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

Method readStop

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

Source from the content-addressed store, hash-verified

86 }
87
88 readStop() {
89 if (this.paused) {
90 return;
91 }
92
93 if (this.started) {
94 this.paused = true;
95 localClearInterval(this._intervalHandle);
96 this._intervalHandle = undefined;
97 } else {
98 throw new Error('Can\'t pause reading an unstarted source.');
99 }
100 }
101 }
102
103 function randomChunk(size) {

Callers 4

workerFunction · 0.45
startFunction · 0.45
cancelFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected