MCPcopy
hub / github.com/coder/mux / release

Method release

src/node/utils/concurrency/asyncMutex.ts:37–43  ·  view source on GitHub ↗

* Release the lock and wake up next waiter in queue * @internal - Should only be called by AsyncMutexLock

()

Source from the content-addressed store, hash-verified

35 * @internal - Should only be called by AsyncMutexLock
36 */
37 release(): void {
38 this.locked = false;
39 const next = this.queue.shift();
40 if (next) {
41 next(); // Wake up next waiter
42 }
43 }
44}
45
46/**

Callers 1

[Symbol.asyncDispose]Method · 0.45

Calls 1

nextFunction · 0.50

Tested by

no test coverage detected