STM

zio.stm.STM$
object STM

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
STM.type

Members list

Concise view

Value members

Concrete methods

def absolve[E, A](e: STM[E, Either[E, A]]): STM[E, A]

Attributes

See also:
def atomically[E, A](stm: STM[E, A])(implicit trace: Trace): IO[E, A]

Attributes

See also:
def attempt[A](a: => A): STM[Throwable, A]

Attributes

See also:
def check(p: => Boolean): USTM[Unit]

Attributes

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]]

Attributes

See also:
def collectAll[E, A](in: Set[STM[E, A]]): STM[E, Set[A]]

Attributes

See also:
def collectAllDiscard[E, A](in: Iterable[STM[E, A]]): STM[E, Unit]

Attributes

See also:
def collectFirst[E, A, B](as: Iterable[A])(f: A => STM[E, Option[B]]): STM[E, Option[B]]

Attributes

See also:
def cond[E, A](predicate: Boolean, result: => A, error: => E): STM[E, A]

Attributes

See also:
def die(t: => Throwable): USTM[Nothing]

Attributes

See also:
def dieMessage(m: => String): USTM[Nothing]

Attributes

See also:
def done[E, A](exit: => TExit[E, A]): STM[E, A]

Attributes

See also:
def exists[E, A](as: Iterable[A])(f: A => STM[E, Boolean]): STM[E, Boolean]

Attributes

See also:
def fail[E](e: => E): STM[E, Nothing]

Attributes

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]]

Attributes

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]]

Attributes

See also:
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]]

Attributes

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]]

Attributes

See also:
def flatten[E, A](task: STM[E, STM[E, A]]): STM[E, A]

Attributes

See also:
def foldLeft[E, S, A](in: Iterable[A])(zero: S)(f: (S, A) => STM[E, S]): STM[E, S]

Attributes

See also:
def foldRight[E, S, A](in: Iterable[A])(zero: S)(f: (A, S) => STM[E, S]): STM[E, S]

Attributes

See also:
def forall[R, E, A](as: Iterable[A])(f: A => ZSTM[R, E, Boolean]): ZSTM[R, E, Boolean]

Attributes

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]]

Attributes

See also:
def foreach[E, A, B](in: Set[A])(f: A => STM[E, B]): STM[E, Set[B]]

Attributes

See also:
def foreachDiscard[E, A](in: Iterable[A])(f: A => STM[E, Any]): STM[E, Unit]

Attributes

See also:
def fromEither[E, A](e: => Either[E, A]): STM[E, A]

Attributes

See also:
def fromOption[A](v: => Option[A]): STM[Option[Nothing], A]

Attributes

See also:
def fromTry[A](a: => Try[A]): TaskSTM[A]

Attributes

See also:
def ifSTM[E](b: STM[E, Boolean]): IfSTM[Any, E]

Attributes

See also:
def iterate[E, S](initial: S)(cont: S => Boolean)(body: S => STM[E, S]): STM[E, S]

Attributes

See also:
def left[A](a: => A): USTM[Either[A, Nothing]]

Attributes

See also:
def loop[E, A, S](initial: S)(cont: S => Boolean, inc: S => S)(body: S => STM[E, A]): STM[E, List[A]]

Attributes

See also:
def loopDiscard[E, S](initial: S)(cont: S => Boolean, inc: S => S)(body: S => STM[E, Any]): STM[E, Unit]

Attributes

See also:
def mergeAll[E, A, B](in: Iterable[STM[E, A]])(zero: B)(f: (B, A) => B): STM[E, B]

Attributes

See also:
def partition[E, A, B](in: Iterable[A])(f: A => STM[E, B])(implicit ev: CanFail[E]): STM[Nothing, (Iterable[E], Iterable[B])]

Attributes

See also:
def reduceAll[E, A](a: STM[E, A], as: Iterable[STM[E, A]])(f: (A, A) => A): STM[E, A]

Attributes

See also:
def replicate[E, A](n: Int)(tx: STM[E, A]): Iterable[STM[E, A]]

Attributes

See also:
def replicateSTM[E, A](n: Int)(transaction: STM[E, A]): STM[E, Iterable[A]]

Attributes

See also:
def replicateSTMDiscard[E, A](n: Int)(transaction: STM[E, A]): STM[E, Unit]

Attributes

See also:
def right[A](a: => A): USTM[Either[Nothing, A]]

Attributes

See also:
def some[A](a: => A): USTM[Option[A]]

Attributes

See also:
def succeed[A](a: => A): USTM[A]

Attributes

See also:
def suspend[E, A](stm: => STM[E, A]): STM[E, A]

Attributes

See also:
def unless[E, A](b: => Boolean)(stm: => STM[E, A]): STM[E, Option[A]]

Attributes

See also:
def unlessSTM[E](b: STM[E, Boolean]): UnlessSTM[Any, E]

Attributes

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]]

Attributes

See also:
def validate[E, A, B](in: NonEmptyChunk[A])(f: A => STM[E, B])(implicit ev: CanFail[E]): STM[::[E], NonEmptyChunk[B]]

Attributes

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]

Attributes

See also:
def when[E, A](b: => Boolean)(stm: => STM[E, A]): STM[E, Option[A]]

Attributes

See also:
def whenCase[E, A, B](a: => A)(pf: PartialFunction[A, STM[E, B]]): STM[E, Option[B]]

Attributes

See also:
def whenCaseSTM[E, A, B](a: STM[E, A])(pf: PartialFunction[A, STM[E, B]]): STM[E, Option[B]]

Attributes

See also:
def whenSTM[E](b: STM[E, Boolean]): WhenSTM[Any, E]

Attributes

See also:

Concrete fields

Attributes

See also:
val none: USTM[Option[Nothing]]

Attributes

See also:
val retry: USTM[Nothing]

Attributes

See also:
val unit: USTM[Unit]

Attributes

See also: