Increase speed of the scheduling service

Signed-off-by: trivernis <trivernis@protonmail.com>
pull/14/head
trivernis 3 years ago
parent dd2db194c9
commit cbdbbfb801
Signed by: Trivernis
GPG Key ID: DFFFCC2C7A02DB45

@ -68,7 +68,7 @@ export class FileCardComponent implements OnInit, OnChanges, OnDestroy {
this.workId = this.schedulingService.addWork(
LOADING_WORK_KEY,
async () => {
await this.schedulingService.delay(1);
await this.schedulingService.delay(0);
this.loading = false;
this.changeDetector.markForCheck();
}

@ -50,7 +50,7 @@ export class SchedulingService {
}
}
}
await this.delay(1);
await this.delay(0);
}
}
}

Loading…
Cancel
Save