repositories
/
e-mobility-charging-stations-simulator.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1227a6f
)
fix: fix async lock property value at init
author
Jérôme Benoit
<jerome.benoit@sap.com>
Sun, 30 Apr 2023 20:57:56 +0000
(22:57 +0200)
committer
Jérôme Benoit
<jerome.benoit@sap.com>
Sun, 30 Apr 2023 20:57:56 +0000
(22:57 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/utils/AsyncLock.ts
patch
|
blob
|
blame
|
history
diff --git
a/src/utils/AsyncLock.ts
b/src/utils/AsyncLock.ts
index 1b61532594b0af1d3148ccddcc6b0779405302b5..8bb8f519222dd1f738fdfd64cd02317c91e4a62a 100644
(file)
--- a/
src/utils/AsyncLock.ts
+++ b/
src/utils/AsyncLock.ts
@@
-5,7
+5,7
@@
export enum AsyncLockType {
export class AsyncLock {
private static readonly instances = new Map<AsyncLockType, AsyncLock>();
- private acquired
= false
;
+ private acquired
: boolean
;
private readonly resolveQueue: ((value: void | PromiseLike<void>) => void)[];
private constructor(private readonly type: AsyncLockType) {