[core] add types for withLock

This commit is contained in:
devlikepro committed 2024-08-27 16:43:06 +07:00
1 parent 5e9be391e1
commit df6ea6f497
1 file changed
+1 -1
+1 -1
View File
@@ -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);
}