feat: test timeout

This commit is contained in:
2026-01-30 17:43:16 +01:00
parent 22a85bcc2a
commit 131cf347ee

View File

@@ -579,6 +579,7 @@ export class CharaDevice {
const chunk = file.slice(i, i + chunkSize);
if (throttle) {
await writer.ready;
await new Promise((resolve) => setTimeout(resolve, 1));
}
await writer.write(new Uint8Array(chunk));
progress(i + chunk.byteLength, file.byteLength);