Atomically performs a batch of operations in a single transaction.
Checks the condition, and if it's true, returns unit, otherwise, retries.
Collects all the transactional effects in a list, returning a single transactional effect that produces a list of values.
Kills the fiber running the effect.
Kills the fiber running the effect with a RuntimeException
that contains
the specified message.
Returns a value that models failure in the transaction.
Applies the function f
to each element of the Iterable[A]
and
returns a transactional effect that produces a new List[B]
.
Creates an STM effect from an Either
value.
Creates an STM effect from a Try
value.
Creates an STM
value from a partial (but pure) function.
Abort and retry the whole transaction when any of the underlying transactional variables have changed.
Returns an STM
effect that succeeds with the specified value.
Suspends creation of the specified transaction lazily.
Returns an STM
effect that succeeds with Unit
.