[core] add types for withLock
This commit is contained in:
1 parent
5e9be391e1
commit
df6ea6f497
1 file changed
+1
-1
@@ -50,7 +50,7 @@ class SessionsController {
|
||||
this.lock = new AsyncLock({ maxPending: Infinity });
|
||||
}
|
||||
|
||||
private withLock(name, fn) {
|
||||
private withLock(name: string, fn: () => any) {
|
||||
return this.lock.acquire(name, fn);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user