scala.concurrent.stm.InTxn.scala Maven / Gradle / Ivy
The newest version!
/* scala-stm - (c) 2009-2011, Stanford University, PPL */
package scala.concurrent.stm
/** 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.
*
* @author Nathan Bronson
*/
trait InTxn extends InTxnEnd
© 2015 - 2025 Weber Informatics LLC | Privacy Policy