MCPcopy Create free account
hub / github.com/Effect-TS/effect / lock

Function lock

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

Source from the content-addressed store, hash-verified

226
227/** @internal */
228export const lock = (self: TReentrantLock.TReentrantLock): Effect.Effect<number, never, Scope.Scope> => writeLock(self)
229
230/** @internal */
231export const locked = (self: TReentrantLock.TReentrantLock): STM.STM<boolean> =>

Callers

nothing calls this directly

Calls 1

writeLockFunction · 0.85

Tested by

no test coverage detected