feat: test timeout

This commit is contained in:
2026-01-30 17:43:16 +01:00
parent b57270ba4f
commit 696497f200

View File

@@ -573,6 +573,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);