Add API for propagating cursor locations (#61)
This commit is contained in:
parent
f97193e287
commit
e8b9bf40c5
1 changed files with 1929 additions and 2228 deletions
|
|
@ -5,7 +5,7 @@ import type { Logger } from "../tracing/logger";
|
|||
// Locks are granted in a first-in-first-out order.
|
||||
export class Locks<T> {
|
||||
private readonly locked = new Set<T>();
|
||||
private readonly waiters = new Map<T, (() => void)[]>();
|
||||
private readonly waiters = new Map<T, (() => unknown)[]>();
|
||||
|
||||
public constructor(private readonly logger: Logger) {}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue