
scala.concurrent.stm.InTxn.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of scala-stm_3.0.0-M2 Show documentation
Show all versions of scala-stm_3.0.0-M2 Show documentation
A library for Software Transactional Memory in Scala
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