effect-io-ai

Package: effect
Module: TReentrantLock

TReentrantLock.lock

Just a convenience method for applications that only need reentrant locks, without needing a distinction between readers / writers.

See TReentrantLock.writeLock.

Signature

declare const lock: (self: TReentrantLock) => Effect.Effect<number, never, Scope.Scope>

Source

Since v2.0.0