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

Function next

inject.js:564–577  ·  view source on GitHub ↗
(...nextArgs)

Source from the content-addressed store, hash-verified

562
563 return {
564 async next(...nextArgs) {
565 try {
566 const result = await iterator.next(...nextArgs);
567 if (result.done) {
568 observer.closeConnection(stream);
569 } else {
570 observer.processChunk(result.value, stream);
571 }
572 return result;
573 } catch (error) {
574 observer.reportError(error);
575 throw error;
576 }
577 },
578 async return(...returnArgs) {
579 observer.closeConnection(stream);
580 if (typeof iterator.return === 'function') {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected