MCPcopy Create free account
hub / github.com/di-sukharev/opencommit / __asyncValues

Function __asyncValues

out/cli.cjs:75019–75037  ·  view source on GitHub ↗
(o3)

Source from the content-addressed store, hash-verified

75017 }
75018 function reject(value) {
75019 resume2("throw", value);
75020 }
75021 function settle2(f4, v5) {
75022 if (f4(v5), q6.shift(), q6.length) resume2(q6[0][0], q6[0][1]);
75023 }
75024}
75025function __asyncValues(o3) {
75026 if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
75027 var m5 = o3[Symbol.asyncIterator], i3;
75028 return m5 ? m5.call(o3) : (o3 = typeof __values === "function" ? __values(o3) : o3[Symbol.iterator](), i3 = {}, verb("next"), verb("throw"), verb("return"), i3[Symbol.asyncIterator] = function() {
75029 return this;
75030 }, i3);
75031 function verb(n2) {
75032 i3[n2] = o3[n2] && function(v5) {
75033 return new Promise(function(resolve, reject) {
75034 v5 = o3[n2](v5), settle2(resolve, reject, v5.done, v5.value);
75035 });
75036 };
75037 }
75038 function settle2(resolve, reject, d7, v5) {
75039 Promise.resolve(v5).then(function(v6) {
75040 resolve({ value: v6, done: d7 });

Callers 3

concatFunction · 0.85
toLineFunction · 0.85
toMessageFunction · 0.85

Calls 2

__valuesFunction · 0.85
verbFunction · 0.85

Tested by

no test coverage detected