Files
SnowLuma/.pnpm-store/v11/files/43/5adc98bbe8fd395d6f2a8f1931bb34cb34f758ffae5d6752b3d3caf3480064e5af054abc268c3f070e806b388e8cf62472dca691b5a273e38cbf695f409964
T
TanTan 2a69b23b47
Dev Build / cleanup (push) Waiting to run
Dev Build / typecheck (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:27:07 +08:00

23 lines
588 B
Plaintext

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.toArrayAsync = toArrayAsync;
exports.takeResult = takeResult;
async function toArrayAsync(it) {
const arr = [];
for await (const o of it) {
arr.push(o);
}
return arr;
}
async function takeResult(it) {
for await (const o of it) {
if (o.type === 'result') {
return o.result;
}
else if (o.type === 'error') {
throw o.error;
}
}
throw new Error('No result in stream.');
}
//# sourceMappingURL=responseMessage.js.map