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.

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.

trait STMLike[F]
class Object
trait Matchable
class Any
trait STM[F]

Type members

Classlikes

final class TMVar[A]
Companion
object
object TMVar
Companion
class

Inherited classlikes

object TVar
Inherited from
STMLike
class TVar[A]
Inherited from
STMLike
sealed abstract class Txn[+A]
Inherited from
STMLike
object Txn
Inherited from
STMLike

Value members

Inherited methods

def abort[A](e: Throwable): Txn[A]
Inherited from
STMLike
def check(cond: => Boolean): Txn[Unit]
Inherited from
STMLike
def commit[A](txn: Txn[A]): F[A]
Inherited from
STMLike
def defer[A](value: => Txn[A]): Txn[A]
Inherited from
STMLike
def pure[A](a: A): Txn[A]
Inherited from
STMLike
def raiseError[A](e: Throwable): Txn[A]
Inherited from
STMLike
def retry[A]: Txn[A]
Inherited from
STMLike

Inherited fields

val unit: Txn[Unit]
Inherited from
STMLike