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

Function readLock

packages/effect/src/internal/stm/tReentrantLock.ts:245–249  ·  view source on GitHub ↗
(self: TReentrantLock.TReentrantLock)

Source from the content-addressed store, hash-verified

243
244/** @internal */
245export const readLock = (self: TReentrantLock.TReentrantLock): Effect.Effect<number, never, Scope.Scope> =>
246 Effect.acquireRelease(
247 core.commit(acquireRead(self)),
248 () => core.commit(releaseRead(self))
249 )
250
251/** @internal */
252export const readLocks = (self: TReentrantLock.TReentrantLock): STM.STM<number> =>

Callers

nothing calls this directly

Calls 3

acquireReadFunction · 0.85
releaseReadFunction · 0.85
commitMethod · 0.45

Tested by

no test coverage detected