MCPcopy Create free account
hub / github.com/bywwcnll/StreamPanel / return

Function return

inject.js:578–584  ·  view source on GitHub ↗
(...returnArgs)

Source from the content-addressed store, hash-verified

576 }
577 },
578 async return(...returnArgs) {
579 observer.closeConnection(stream);
580 if (typeof iterator.return === 'function') {
581 return iterator.return(...returnArgs);
582 }
583 return { done: true };
584 },
585 async throw(...throwArgs) {
586 const error = throwArgs[0] || new Error('ReadableStream iterator error');
587 observer.reportError(error);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected