STM

final class STM[F[_], +A]
Companion:
object
class Object
trait Matchable
class Any
STM[F, A]

Value members

Concrete methods

final def *>[B](that: => STM[F, B]): STM[F, B]

See zio.stm.ZSTM *>

See zio.stm.ZSTM *>

final def <*[B](that: => STM[F, B]): STM[F, A]

See zio.stm.ZSTM <*

See zio.stm.ZSTM <*

final def <*>[B](that: => STM[F, B])(implicit zippable: Zippable[A, B]): STM[F, Out]

See <*> zio.stm.STM <*>

See <*> zio.stm.STM <*>

final def collect[B](pf: PartialFunction[A, B]): STM[F, B]

See zio.stm.ZSTM#collect

See zio.stm.ZSTM#collect

final def commit(implicit R: Runtime[Any], A: Async[F], trace: Trace): F[A]
final def const[B](b: => B): STM[F, B]
final def flatMap[B](f: A => STM[F, B]): STM[F, B]
final def flatten[B](implicit ev: A <:< STM[F, B]): STM[F, B]
final def fold[B](f: Throwable => B, g: A => B): STM[F, B]
final def foldM[B](f: Throwable => STM[F, B], g: A => STM[F, B]): STM[F, B]
final def map[B](f: A => B): STM[F, B]
final def mapK[G[_]]: STM[G, A]

Switch from effect F to effect G.

Switch from effect F to effect G.

final def orElse[A1 >: A](that: => STM[F, A1]): STM[F, A1]
final def orElseEither[B](that: => STM[F, B]): STM[F, Either[A, B]]
final def unit: STM[F, Unit]

See zio.stm.STM.unit

See zio.stm.STM.unit

final def void: STM[F, Unit]

See zio.stm.STM.unit

See zio.stm.STM.unit

final def withFilter(f: A => Boolean): STM[F, A]

Same as filter

Same as filter

final def zip[B](that: => STM[F, B])(implicit zippable: Zippable[A, B]): STM[F, Out]
final def zipLeft[B](that: => STM[F, B]): STM[F, A]
final def zipRight[B](that: => STM[F, B]): STM[F, B]
final def zipWith[B, C](that: => STM[F, B])(f: (A, B) => C): STM[F, C]