MCPcopy
hub / github.com/di-sukharev/opencommit / streamAsyncIterator

Function streamAsyncIterator

out/cli.cjs:75665–75680  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

75663 if (isNode) {
75664 return Object.assign(Object.assign({}, unimplementedMethods), { type: (_a5 = options.type) !== null && _a5 !== void 0 ? _a5 : "", lastModified: (_b2 = options.lastModified) !== null && _b2 !== void 0 ? _b2 : (/* @__PURE__ */ new Date()).getTime(), webkitRelativePath: (_c2 = options.webkitRelativePath) !== null && _c2 !== void 0 ? _c2 : "", size: content.byteLength, name, arrayBuffer: async () => content.buffer, stream: () => new Blob([content]).stream(), [rawContent]: () => content });
75665 } else {
75666 return new File([content], name, options);
75667 }
75668}
75669
75670// node_modules/@azure/core-rest-pipeline/dist/esm/util/concat.js
75671function streamAsyncIterator() {
75672 return __asyncGenerator(this, arguments, function* streamAsyncIterator_1() {
75673 const reader = this.getReader();
75674 try {
75675 while (true) {
75676 const { done, value } = yield __await(reader.read());
75677 if (done) {
75678 return yield __await(void 0);
75679 }
75680 yield yield __await(value);
75681 }
75682 } finally {
75683 reader.releaseLock();

Callers

nothing calls this directly

Calls 5

__asyncGeneratorFunction · 0.85
__awaitFunction · 0.85
getReaderMethod · 0.45
readMethod · 0.45
releaseLockMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…