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

Function isReadLock

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

Source from the content-addressed store, hash-verified

102}
103
104const isReadLock = (lock: LockState): lock is ReadLock => {
105 return ReadLockTypeId in lock
106}
107
108const isWriteLock = (lock: LockState): lock is WriteLock => {
109 return WriteLockTypeId in lock

Callers 2

adjustReadFunction · 0.85
acquireWriteFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected