Registers a thunk to be executed after the transaction successfully committed.
Registers a thunk to be executed after the transaction successfully committed.
Every transaction has a plain Scala-STM transaction as a peer.
Every transaction has a plain Scala-STM transaction as a peer. This comes handy for
setting up custom things like TxnLocal
, TMap
, or calling into the hooks of concurrent.stm.Txn
.
It is also needed when re-wrapping the transaction of one system into another.
The
Txn
trait is declared without representation type parameter in order to keep the real-time sound synthesis API clutter free. The sound synthesis is always ephemeral, so does not need to know anything about the underlying system. What the process transaction provides is a package privateaddMessage
method for staging OSC messages which are flushed at the end of a successful transaction.