This commit is contained in:
2026-08-14 16:03:47 +01:00
parent fd53e3f4fb
commit dfdc3b2840
2463 changed files with 186456 additions and 111315 deletions
+4 -2
View File
@@ -27,7 +27,9 @@ var StreamingApi = class {
done ? controller.close() : controller.enqueue(value);
},
cancel: () => {
this.abort();
if (!this.closed) {
this.abort();
}
}
});
}
@@ -49,11 +51,11 @@ var StreamingApi = class {
return new Promise((res) => setTimeout(res, ms));
}
async close() {
this.closed = true;
try {
await this.writer.close();
} catch {
}
this.closed = true;
}
async pipe(body) {
this.writer.releaseLock();