InTxn
The presence of an implicit InTxn instance grants the caller permission
to perform transactional reads and writes on Ref instances, as well as
permission to call object Txn methods that require an InTxnEnd.
InTxn instances themselves might be reused by the STM, use
NestingLevel.current or NestingLevel.root to get a NestingLevel if
you need to track an individual execution attempt.
The presence of an implicit InTxn instance grants the caller permission
to perform transactional reads and writes on Ref instances, as well as
permission to call object Txn methods that require an InTxnEnd.
InTxn instances themselves might be reused by the STM, use
NestingLevel.current or NestingLevel.root to get a NestingLevel if
you need to track an individual execution attempt.
- Authors
Nathan Bronson