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

Method return

lib/internal/streams/iter/share.js:201–209  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

199 },
200
201 async return() {
202 state.detached = true;
203 state.resolve = null;
204 state.reject = null;
205 if (self.#deleteConsumer(state)) {
206 self.#tryTrimBuffer();
207 }
208 return { __proto__: null, done: true, value: undefined };
209 },
210
211 async throw() {
212 state.detached = true;

Callers 15

closeFunction · 0.45
destroyFunction · 0.45
cancelMethod · 0.45
cancelMethod · 0.45
cleanupIteratorsFunction · 0.45
closeFunction · 0.45
makeZlibTransformFunction · 0.45
[SymbolAsyncIterator]Function · 0.45
nextFunction · 0.45

Calls 2

#deleteConsumerMethod · 0.45
#tryTrimBufferMethod · 0.45

Tested by

no test coverage detected