diff options
| author | 2025-08-20 20:55:34 +0000 | |
|---|---|---|
| committer | 2025-08-20 20:55:34 +0000 | |
| commit | 001fc710d8b662080098d8d7dcba2c668bcb0587 (patch) | |
| tree | 56dbb373e0fa9fa5eeb49cf2fc2c42c1e152f2cb /src/lib | |
| parent | 80d0342636056bc839517b64fd11708abea70237 (diff) | |
| download | crunched-001fc710d8b662080098d8d7dcba2c668bcb0587.tar.gz crunched-001fc710d8b662080098d8d7dcba2c668bcb0587.tar.bz2 crunched-001fc710d8b662080098d8d7dcba2c668bcb0587.tar.lz crunched-001fc710d8b662080098d8d7dcba2c668bcb0587.zip | |
feat: do things
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/vendor/lock.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/vendor/lock.ts b/src/lib/vendor/lock.ts index 43249cd..3f2b6b9 100644 --- a/src/lib/vendor/lock.ts +++ b/src/lib/vendor/lock.ts @@ -184,7 +184,7 @@ export class JoinedRWLock extends RWLockAbstract { * @param priority Priority passed to {@link RWLockImpl.acquireRead RWLock.acquireRead} * @param greedy If we should attempt to get the underlying locks whilst waiting on others. This gives us priority, but may make other operations take forever. `-1`=Never be greedy, `0`=Immediately be greedy, `>0`=Wait `greedyAfter` seconds before being greedy (leaks a Promise if timeout reached) */ - public acquireRead(priority?: number): Promise<() => void> { + public acquireRead(priority?: number, greedyAfter = -1): Promise<() => void> { return this.acquireGeneric( (lock, priority) => lock.acquireRead(priority), priority, |