Format & lint
This commit is contained in:
parent
0e0a85df82
commit
5efe30d9d6
7 changed files with 32 additions and 22 deletions
|
|
@ -13,9 +13,12 @@ export class Locks<T> {
|
|||
private readonly locked = new Set<T>();
|
||||
|
||||
/** Queue of resolve functions waiting for each key */
|
||||
private readonly waiters = new Map<T, ([() => unknown, (err: unknown) => unknown])[]>();
|
||||
private readonly waiters = new Map<
|
||||
T,
|
||||
[() => unknown, (err: unknown) => unknown][]
|
||||
>();
|
||||
|
||||
public constructor(private readonly logger?: Logger) { }
|
||||
public constructor(private readonly logger?: Logger) {}
|
||||
|
||||
/**
|
||||
* Executes a function while holding exclusive locks on one or more keys.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue