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

Function writeLocked

packages/effect/src/TxReentrantLock.ts:658–662  ·  view source on GitHub ↗
(self: TxReentrantLock)

Source from the content-addressed store, hash-verified

656 * @since 2.0.0
657 */
658export const writeLocked = (self: TxReentrantLock): Effect.Effect<boolean> =>
659 Effect.gen(function*() {
660 const state = yield* TxRef.get(self.stateRef)
661 return Option.isSome(state.writer)
662 })
663
664// =============================================================================
665// Guards

Callers

nothing calls this directly

Calls 1

getMethod · 0.65

Tested by

no test coverage detected