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

Method readLocks

packages/effect/src/internal/stm/tReentrantLock.ts:65–67  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

63 readonly [ReadLockTypeId]: ReadLockTypeId = ReadLockTypeId
64 constructor(readonly readers: HashMap.HashMap<FiberId.FiberId, number>) {}
65 get readLocks(): number {
66 return Array.from(this.readers).reduce((acc, curr) => acc + curr[1], 0)
67 }
68 get writeLocks(): number {
69 return 0
70 }

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected