STM

object STM
class Object
trait Matchable
class Any
STM.type

Value members

Concrete methods

def absolve[E, A](e: STM[E, Either[E, A]]): STM[E, A]
See also:
def atomically[E, A](stm: STM[E, A]): IO[E, A]
def check(p: => Boolean): USTM[Unit]
See also:
def collectAll[E, A, Collection <: (Iterable)](in: Collection[STM[E, A]])(implicit bf: BuildFrom[Collection[STM[E, A]], A, Collection[A]]): STM[E, Collection[A]]
See also:
def collectAll[E, A](in: Set[STM[E, A]]): STM[E, Set[A]]
See also:
def collectAll_[E, A](in: Iterable[STM[E, A]]): STM[E, Unit]
def collectFirst[E, A, B](as: Iterable[A])(f: A => STM[E, Option[B]]): STM[E, Option[B]]
def cond[E, A](predicate: Boolean, result: => A, error: => E): STM[E, A]
See also:
def die(t: => Throwable): USTM[Nothing]
See also:
def dieMessage(m: => String): USTM[Nothing]
def done[E, A](exit: => TExit[E, A]): STM[E, A]
See also:
def exists[E, A](as: Iterable[A])(f: A => STM[E, Boolean]): STM[E, Boolean]
See also:
def fail[E](e: => E): STM[E, Nothing]
See also:
def filter[E, A, Collection <: (Iterable)](as: Collection[A])(f: A => STM[E, Boolean])(implicit bf: BuildFrom[Collection[A], A, Collection[A]]): STM[E, Collection[A]]
See also:

[[zio.stm.ZSTM.filter[R,E,A,Collection*]]

def filter[E, A](as: Set[A])(f: A => STM[E, Boolean]): STM[E, Set[A]]
def filterNot[E, A, Collection <: (Iterable)](as: Collection[A])(f: A => STM[E, Boolean])(implicit bf: BuildFrom[Collection[A], A, Collection[A]]): STM[E, Collection[A]]
See also:

[[zio.stm.ZSTM.filterNot[R,E,A,Collection*]]

def filterNot[E, A](as: Set[A])(f: A => STM[E, Boolean]): STM[E, Set[A]]
def flatten[E, A](task: STM[E, STM[E, A]]): STM[E, A]
See also:
def foldLeft[E, S, A](in: Iterable[A])(zero: S)(f: (S, A) => STM[E, S]): STM[E, S]
See also:
def foldRight[E, S, A](in: Iterable[A])(zero: S)(f: (A, S) => STM[E, S]): STM[E, S]
def forall[R, E, A](as: Iterable[A])(f: A => ZSTM[R, E, Boolean]): ZSTM[R, E, Boolean]
See also:
def foreach[E, A, B, Collection <: (Iterable)](in: Collection[A])(f: A => STM[E, B])(implicit bf: BuildFrom[Collection[A], B, Collection[B]]): STM[E, Collection[B]]
See also:
def foreach[E, A, B](in: Set[A])(f: A => STM[E, B]): STM[E, Set[B]]
See also:
def foreach_[E, A](in: Iterable[A])(f: A => STM[E, Any]): STM[E, Unit]
See also:
def fromEither[E, A](e: => Either[E, A]): STM[E, A]
def fromFunction[A](f: Any => A): USTM[A]
def fromFunctionM[E, A](f: Any => STM[E, A]): STM[E, A]
def fromOption[A](v: => Option[A]): STM[Option[Nothing], A]
def fromTry[A](a: => Try[A]): TaskSTM[A]
See also:
def identity: USTM[Any]
See also:
def ifM[E](b: STM[E, Boolean]): IfM[Any, E]
See also:
def iterate[E, S](initial: S)(cont: S => Boolean)(body: S => STM[E, S]): STM[E, S]
See also:
def left[A](a: => A): USTM[Either[A, Nothing]]
See also:
def loop[E, A, S](initial: S)(cont: S => Boolean, inc: S => S)(body: S => STM[E, A]): STM[E, List[A]]
See also:
def loop_[E, S](initial: S)(cont: S => Boolean, inc: S => S)(body: S => STM[E, Any]): STM[E, Unit]
See also:
def mapN[E, A, B, C](tx1: STM[E, A], tx2: STM[E, B])(f: (A, B) => C): STM[E, C]
See also:
def mapN[E, A, B, C, D](tx1: STM[E, A], tx2: STM[E, B], tx3: STM[E, C])(f: (A, B, C) => D): STM[E, D]
See also:
def mapN[E, A, B, C, D, F](tx1: STM[E, A], tx2: STM[E, B], tx3: STM[E, C], tx4: STM[E, D])(f: (A, B, C, D) => F): STM[E, F]
See also:
def mergeAll[E, A, B](in: Iterable[STM[E, A]])(zero: B)(f: (B, A) => B): STM[E, B]
See also:
def partial[A](a: => A): STM[Throwable, A]
def partition[E, A, B](in: Iterable[A])(f: A => STM[E, B])(implicit ev: CanFail[E]): STM[Nothing, (Iterable[E], Iterable[B])]
def reduceAll[E, A](a: STM[E, A], as: Iterable[STM[E, A]])(f: (A, A) => A): STM[E, A]
def replicate[E, A](n: Int)(tx: STM[E, A]): Iterable[STM[E, A]]
def replicateM[E, A](n: Int)(transaction: STM[E, A]): STM[E, Iterable[A]]
def replicateM_[E, A](n: Int)(transaction: STM[E, A]): STM[E, Unit]
def require[E, A](error: => E): STM[E, Option[A]] => STM[E, A]
See also:
def right[A](a: => A): USTM[Either[Nothing, A]]
See also:
def some[A](a: => A): USTM[Option[A]]
See also:
def succeed[A](a: => A): USTM[A]
See also:
def suspend[E, A](stm: => STM[E, A]): STM[E, A]
See also:
def unless[E](b: => Boolean)(stm: => STM[E, Any]): STM[E, Unit]
See also:
def unlessM[E](b: STM[E, Boolean]): UnlessM[Any, E]
See also:
def validate[E, A, B, Collection <: (Iterable)](in: Collection[A])(f: A => STM[E, B])(implicit bf: BuildFrom[Collection[A], B, Collection[B]], ev: CanFail[E]): STM[::[E], Collection[B]]
See also:
def validate[E, A, B](in: NonEmptyChunk[A])(f: A => STM[E, B])(implicit ev: CanFail[E]): STM[::[E], NonEmptyChunk[B]]
See also:
def validateFirst[E, A, B, Collection <: (Iterable)](in: Collection[A])(f: A => STM[E, B])(implicit bf: BuildFrom[Collection[A], E, Collection[E]], ev: CanFail[E]): STM[Collection[E], B]
def when[E](b: => Boolean)(stm: => STM[E, Any]): STM[E, Unit]
See also:
def whenCase[E, A](a: => A)(pf: PartialFunction[A, STM[E, Any]]): STM[E, Unit]
See also:
def whenCaseM[E, A](a: STM[E, A])(pf: PartialFunction[A, STM[E, Any]]): STM[E, Unit]
def whenM[E](b: STM[E, Boolean]): WhenM[Any, E]
See also:

Concrete fields

See also:
val none: USTM[Option[Nothing]]
See also:
val retry: USTM[Nothing]
See also:
val unit: USTM[Unit]
See also: