feat: PreloadManager - improve perf and standardize preloading behevior

fix test
This commit is contained in:
midzelis
2025-12-05 15:19:44 +00:00
parent 841046931b
commit 4836963196
22 changed files with 636 additions and 419 deletions

View File

@@ -50,4 +50,13 @@ export class InvocationTracker {
isActive() {
return this.invocationsStarted !== this.invocationsEnded;
}
async invoke<T>(invocable: () => Promise<T>) {
const invocation = this.startInvocation();
try {
return await invocable();
} finally {
invocation.endInvocation();
}
}
}