getApplication改为异步调用

This commit is contained in:
Xu Chang 2022-06-28 14:50:39 +08:00
parent d7c0cf4887
commit 75da1ebcff
1 changed files with 2 additions and 1 deletions

View File

@ -59,7 +59,8 @@ export class Application<ED extends EntityDict, Cxt extends GeneralRuntimeContex
this.rwLock.release();
}
getApplication() {
async getApplication() {
await this.refresh();
this.rwLock.acquire('S');
const result = this.application!;
this.rwLock.release();