ai.entrolution.bengal.stm.model
Core model types for Bengal STM.
Attributes
Members list
Packages
Type members
Classlikes
Attributes
- Source
- TxnErratum.scala
- Supertypes
-
trait Sumtrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
TxnErratum.type
A mutable transactional variable holding a single value of type T.
A mutable transactional variable holding a single value of type T.
TxnVar instances are created outside the Txn monad via TxnVar.of and then read/written within transactions using the syntax extensions provided by the STM implicit class or bengal.stm.syntax.all._.
Type parameters
- F
-
the effect type
- T
-
the value type
Attributes
- Companion
- object
- Source
- TxnVar.scala
- Supertypes
Attributes
- Companion
- class
- Source
- TxnVar.scala
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
TxnVar.type
A mutable transactional map from keys of type K to values of type V.
A mutable transactional map from keys of type K to values of type V.
Unlike wrapping a Map in a TxnVar, TxnVarMap tracks individual keys as separate transactional entities, enabling finer-grained conflict detection and better concurrency. Create instances via TxnVarMap.of.
Type parameters
- F
-
the effect type
- K
-
the key type
- V
-
the value type
Attributes
- Companion
- object
- Source
- TxnVarMap.scala
- Supertypes
Attributes
- Companion
- class
- Source
- TxnVarMap.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
TxnVarMap.type
Types
A composable transaction that produces a value of type V when committed.
A composable transaction that produces a value of type V when committed. Built using a free monad over the STM algebra, enabling static analysis of transaction variable domains before execution.
Attributes
- Source
- package.scala