TxnOps

ai.entrolution.bengal.stm.STM.TxnOps
implicit class TxnOps[V](txn: => Txn[V])

Provides commit and error-handling operations on Txn values.

Attributes

Source
STM.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def commit: F[V]

Commits the transaction, executing it against the STM runtime and lifting the result into F.

Commits the transaction, executing it against the STM runtime and lifting the result into F.

Attributes

Source
STM.scala
def handleErrorWith(f: Throwable => Txn[V]): Txn[V]

Recovers from transaction errors/aborts by mapping the throwable to a fallback transaction.

Recovers from transaction errors/aborts by mapping the throwable to a fallback transaction.

Attributes

Source
STM.scala