MCPcopy Index your code
hub / github.com/Effect-TS/effect / isWriteLock

Function isWriteLock

packages/effect/src/internal/stm/tReentrantLock.ts:108–110  ·  view source on GitHub ↗
(lock: LockState)

Source from the content-addressed store, hash-verified

106}
107
108const isWriteLock = (lock: LockState): lock is WriteLock => {
109 return WriteLockTypeId in lock
110}
111
112/**
113 * An empty read lock state, in which no fiber holds any read locks.

Callers 3

adjustReadFunction · 0.85
acquireWriteFunction · 0.85
releaseWriteFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected