getApplication改为异步调用
This commit is contained in:
parent
d7c0cf4887
commit
75da1ebcff
|
|
@ -59,7 +59,8 @@ export class Application<ED extends EntityDict, Cxt extends GeneralRuntimeContex
|
||||||
this.rwLock.release();
|
this.rwLock.release();
|
||||||
}
|
}
|
||||||
|
|
||||||
getApplication() {
|
async getApplication() {
|
||||||
|
await this.refresh();
|
||||||
this.rwLock.acquire('S');
|
this.rwLock.acquire('S');
|
||||||
const result = this.application!;
|
const result = this.application!;
|
||||||
this.rwLock.release();
|
this.rwLock.release();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue