mirror of
https://github.com/CharaChorder/DeviceManager.git
synced 2026-02-03 15:52:42 +00:00
feat: test timeout
This commit is contained in:
@@ -589,6 +589,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);
|
||||
|
||||
Reference in New Issue
Block a user