TMVarLike

io.github.timwspence.cats.stm.TMVarLike
trait TMVarLike[F[_]] extends STMLike[F]

Convenience definition providing MVar-like behaviour in the STM monad. That is, a TMVar is a mutable memory location which is either empty or contains a value.

Analogous to cats.effect.concurrent.MVar.

Attributes

Source:
TMVar.scala
Graph
Supertypes
trait STMLike[F]
class Object
trait Matchable
class Any
Known subtypes
trait STM[F]

Members list

Concise view

Type members

Classlikes

final class TMVar[A]

Attributes

Companion:
object
Source:
TMVar.scala
Graph
Supertypes
class Object
trait Matchable
class Any
object TMVar

Attributes

Companion:
class
Source:
TMVar.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
TMVar.type

Inherited classlikes

class TVar[A]

Attributes

Inherited from:
STMLike
Source:
STMLike.scala
Graph
Supertypes
class Object
trait Matchable
class Any
object TVar

Attributes

Inherited from:
STMLike
Source:
STMLike.scala
Graph
Supertypes
class Object
trait Matchable
class Any
sealed abstract class Txn[+A]

Attributes

Inherited from:
STMLike
Source:
STMLike.scala
Graph
Supertypes
class Object
trait Matchable
class Any
object Txn

Attributes

Inherited from:
STMLike
Source:
STMLike.scala
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any

Value members

Inherited methods

def abort[A](e: Throwable): Txn[A]

Attributes

Inherited from:
STMLike
Source:
STMLike.scala
def check(cond: => Boolean): Txn[Unit]

Attributes

Inherited from:
STMLike
Source:
STMLike.scala
def commit[A](txn: Txn[A]): F[A]

Attributes

Inherited from:
STMLike
Source:
STMLike.scala

Attributes

Inherited from:
STMLike
Source:
STMLike.scala
def defer[A](value: => Txn[A]): Txn[A]

Attributes

Inherited from:
STMLike
Source:
STMLike.scala
def pure[A](a: A): Txn[A]

Attributes

Inherited from:
STMLike
Source:
STMLike.scala
def raiseError[A](e: Throwable): Txn[A]

Attributes

Inherited from:
STMLike
Source:
STMLike.scala
def retry[A]: Txn[A]

Attributes

Inherited from:
STMLike
Source:
STMLike.scala

Inherited fields

val unit: Txn[Unit]

Attributes

Inherited from:
STMLike
Source:
STMLike.scala