effect-io-ai

Package: effect
Module: TReentrantLock

TReentrantLock.acquireRead

Acquires a read lock. The transaction will suspend until no other fiber is holding a write lock. Succeeds with the number of read locks held by this fiber.

Signature

declare const acquireRead: (self: TReentrantLock) => STM.STM<number>

Source

Since v2.0.0