Package: effect
Module: TxReentrantLock
Creates a new TxReentrantLock.
Example (Creating a reentrant lock)
import { Effect, TxReentrantLock } from "effect"
const program = Effect.gen(function*() {
const lock = yield* TxReentrantLock.make()
const isLocked = yield* TxReentrantLock.locked(lock)
console.log(isLocked) // false
})
Signature
declare const make: () => Effect.Effect<TxReentrantLock>
Since v2.0.0