effect-io-ai

Package: effect
Module: TReentrantLock

TReentrantLock.acquireWrite

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

Signature

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

Source

Since v2.0.0