fix: 注释与实现错位问题

This commit is contained in:
AncTe committed 2026-10-26 22:18:30 +08:00
1 parent 29c91c10d5
commit c5b0a255ba
8 files changed
+45 -21

No files matched your search

+2 -2
View File
@@ -51,7 +51,7 @@ export class LoadManager
async *load(): AsyncIterable<number> {
for (const task of this.addedTasks) {
if (!task.contentLoaded) {
task.start();
Array.fromAsync(task.start());
}
}
while (true) {
@@ -90,7 +90,7 @@ export class LoadManager
}
getTotalByte(): number {
return this.loaded;
return this.total;
}
getLoadedTasks(): number {