GitHub

tx_semaphore

API reference for tx_semaphore.

TxSemaphore: a transactional counting semaphore (Effect's TxSemaphore).

The free permits live in a TxRef. acquire waits (tx_retry) until enough permits are free; release never raises the count above the capacity it was made with. Inside a transaction, acquiring and releasing take effect only when it commits.

Classes