Object/Trait

zio.stm

ZSTM

Related Docs: trait ZSTM | package stm

Permalink

object ZSTM extends Serializable

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ZSTM
  2. Serializable
  3. Serializable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. final class EnvironmentWithPartiallyApplied[R] extends AnyVal

    Permalink
  2. final class EnvironmentWithSTMPartiallyApplied[R] extends AnyVal

    Permalink
  3. final class IfSTM[R, E] extends AnyRef

    Permalink
  4. final class ServiceAtPartiallyApplied[Service] extends AnyVal

    Permalink
  5. final class ServiceWithPartiallyApplied[Service] extends AnyVal

    Permalink
  6. final class ServiceWithSTMPartiallyApplied[Service] extends AnyVal

    Permalink
  7. final class UnlessSTM[R, E] extends AnyRef

    Permalink
  8. final class UpdateService[-R, +E, +A, M] extends AnyRef

    Permalink
  9. final class UpdateServiceAt[-R, +E, +A, Service] extends AnyVal

    Permalink
  10. final class WhenSTM[R, E] extends AnyRef

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def absolve[R, E, A](z: ZSTM[R, E, Either[E, A]]): ZSTM[R, E, A]

    Permalink

    Submerges the error case of an Either into the STM.

    Submerges the error case of an Either into the STM. The inverse operation of STM.either.

  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def atomically[R, E, A](stm: ZSTM[R, E, A])(implicit trace: ZTraceElement): ZIO[R, E, A]

    Permalink

    Atomically performs a batch of operations in a single transaction.

  7. def attempt[A](a: ⇒ A): STM[Throwable, A]

    Permalink

    Creates an STM value from a partial (but pure) function.

  8. def check[R](p: ⇒ Boolean): URSTM[R, Unit]

    Permalink

    Checks the condition, and if it's true, returns unit, otherwise, retries.

  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def collect[R, E, A, B, Collection[+Element] <: Iterable[Element]](in: Collection[A])(f: (A) ⇒ ZSTM[R, Option[E], B])(implicit bf: zio.BuildFrom[Collection[A], B, Collection[B]]): ZSTM[R, E, Collection[B]]

    Permalink

    Evaluate each effect in the structure from left to right, collecting the the successful values and discarding the empty cases.

  11. def collectAll[R, E, A](in: Set[ZSTM[R, E, A]]): ZSTM[R, E, Set[A]]

    Permalink

    Collects all the transactional effects in a set, returning a single transactional effect that produces a set of values.

  12. def collectAll[R, E, A, Collection[+Element] <: Iterable[Element]](in: Collection[ZSTM[R, E, A]])(implicit bf: zio.BuildFrom[Collection[ZSTM[R, E, A]], A, Collection[A]]): ZSTM[R, E, Collection[A]]

    Permalink

    Collects all the transactional effects in a collection, returning a single transactional effect that produces a collection of values.

  13. def collectAllDiscard[R, E, A](in: Iterable[ZSTM[R, E, A]]): ZSTM[R, E, Unit]

    Permalink

    Collects all the transactional effects, returning a single transactional effect that produces Unit.

    Collects all the transactional effects, returning a single transactional effect that produces Unit.

    Equivalent to collectAll(i).unit, but without the cost of building the list of results.

  14. def collectFirst[R, E, A, B](as: Iterable[A])(f: (A) ⇒ ZSTM[R, E, Option[B]]): ZSTM[R, E, Option[B]]

    Permalink

    Collects the first element of the Iterable[A] for which the effectual function f returns Some.

  15. def cond[E, A](predicate: Boolean, result: ⇒ A, error: ⇒ E): STM[E, A]

    Permalink

    Similar to Either.cond, evaluate the predicate, return the given A as success if predicate returns true, and the given E as error otherwise

  16. def die(t: ⇒ Throwable): USTM[Nothing]

    Permalink

    Kills the fiber running the effect.

  17. def dieMessage(m: ⇒ String): USTM[Nothing]

    Permalink

    Kills the fiber running the effect with a RuntimeException that contains the specified message.

  18. def done[R, E, A](exit: ⇒ TExit[E, A]): ZSTM[R, E, A]

    Permalink

    Returns a value modelled on provided exit status.

  19. def environment[R]: URSTM[R, ZEnvironment[R]]

    Permalink

    Retrieves the environment inside an stm.

  20. def environmentWith[R]: EnvironmentWithPartiallyApplied[R]

    Permalink

    Accesses the environment of the transaction to perform a transaction.

  21. def environmentWithSTM[R]: EnvironmentWithSTMPartiallyApplied[R]

    Permalink

    Accesses the environment of the transaction to perform a transaction.

  22. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  23. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  24. def exists[R, E, A](as: Iterable[A])(f: (A) ⇒ ZSTM[R, E, Boolean]): ZSTM[R, E, Boolean]

    Permalink

    Determines whether any element of the Iterable[A] satisfies the effectual predicate f.

  25. def fail[E](e: ⇒ E): STM[E, Nothing]

    Permalink

    Returns a value that models failure in the transaction.

  26. val fiberId: USTM[FiberId]

    Permalink

    Returns the fiber id of the fiber committing the transaction.

  27. def filter[R, E, A](as: Set[A])(f: (A) ⇒ ZSTM[R, E, Boolean]): ZSTM[R, E, Set[A]]

    Permalink

    Filters the set using the specified effectual predicate.

  28. def filter[R, E, A, Collection[+Element] <: Iterable[Element]](as: Collection[A])(f: (A) ⇒ ZSTM[R, E, Boolean])(implicit bf: zio.BuildFrom[Collection[A], A, Collection[A]]): ZSTM[R, E, Collection[A]]

    Permalink

    Filters the collection using the specified effectual predicate.

  29. def filterNot[R, E, A](as: Set[A])(f: (A) ⇒ ZSTM[R, E, Boolean]): ZSTM[R, E, Set[A]]

    Permalink

    Filters the set using the specified effectual predicate, removing all elements that satisfy the predicate.

  30. def filterNot[R, E, A, Collection[+Element] <: Iterable[Element]](as: Collection[A])(f: (A) ⇒ ZSTM[R, E, Boolean])(implicit bf: zio.BuildFrom[Collection[A], A, Collection[A]]): ZSTM[R, E, Collection[A]]

    Permalink

    Filters the collection using the specified effectual predicate, removing all elements that satisfy the predicate.

  31. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  32. def flatten[R, E, A](tx: ZSTM[R, E, ZSTM[R, E, A]]): ZSTM[R, E, A]

    Permalink

    Returns an effect that first executes the outer effect, and then executes the inner effect, returning the value from the inner effect, and effectively flattening a nested effect.

  33. def foldLeft[R, E, S, A](in: Iterable[A])(zero: S)(f: (S, A) ⇒ ZSTM[R, E, S]): ZSTM[R, E, S]

    Permalink

    Folds an Iterable[A] using an effectual function f, working sequentially from left to right.

  34. def foldRight[R, E, S, A](in: Iterable[A])(zero: S)(f: (A, S) ⇒ ZSTM[R, E, S]): ZSTM[R, E, S]

    Permalink

    Folds an Iterable[A] using an effectual function f, working sequentially from right to left.

  35. def forall[R, E, A](as: Iterable[A])(f: (A) ⇒ ZSTM[R, E, Boolean]): ZSTM[R, E, Boolean]

    Permalink

    Determines whether all elements of the Iterable[A] satisfy the effectual predicate f.

  36. def foreach[R, E, A, B](in: Set[A])(f: (A) ⇒ ZSTM[R, E, B]): ZSTM[R, E, Set[B]]

    Permalink

    Applies the function f to each element of the Set[A] and returns a transactional effect that produces a new Set[B].

  37. def foreach[R, E, A, B, Collection[+Element] <: Iterable[Element]](in: Collection[A])(f: (A) ⇒ ZSTM[R, E, B])(implicit bf: zio.BuildFrom[Collection[A], B, Collection[B]]): ZSTM[R, E, Collection[B]]

    Permalink

    Applies the function f to each element of the Collection[A] and returns a transactional effect that produces a new Collection[B].

  38. def foreachDiscard[R, E, A](in: Iterable[A])(f: (A) ⇒ ZSTM[R, E, Any]): ZSTM[R, E, Unit]

    Permalink

    Applies the function f to each element of the Iterable[A] and returns a transactional effect that produces Unit.

    Applies the function f to each element of the Iterable[A] and returns a transactional effect that produces Unit.

    Equivalent to foreach(as)(f).unit, but without the cost of building the list of results.

  39. def fromEither[E, A](e: ⇒ Either[E, A]): STM[E, A]

    Permalink

    Lifts an Either into a STM.

  40. def fromOption[A](v: ⇒ Option[A]): STM[Option[Nothing], A]

    Permalink

    Lifts an Option into a STM.

  41. def fromTry[A](a: ⇒ Try[A]): TaskSTM[A]

    Permalink

    Lifts a Try into a STM.

  42. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  43. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  44. def ifSTM[R, E](b: ZSTM[R, E, Boolean]): IfSTM[R, E]

    Permalink

    Runs onTrue if the result of b is true and onFalse otherwise.

  45. lazy val interrupt: USTM[Nothing]

    Permalink

    Interrupts the fiber running the effect.

  46. def interruptAs(fiberId: ⇒ FiberId): USTM[Nothing]

    Permalink

    Interrupts the fiber running the effect with the specified fiber id.

  47. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  48. def iterate[R, E, S](initial: S)(cont: (S) ⇒ Boolean)(body: (S) ⇒ ZSTM[R, E, S]): ZSTM[R, E, S]

    Permalink

    Iterates with the specified transactional function.

    Iterates with the specified transactional function. The moral equivalent of:

    var s = initial
    
    while (cont(s)) {
      s = body(s)
    }
    
    s
  49. def left[A](a: ⇒ A): USTM[Either[A, Nothing]]

    Permalink

    Returns an effect with the value on the left part.

  50. def loop[R, E, A, S](initial: S)(cont: (S) ⇒ Boolean, inc: (S) ⇒ S)(body: (S) ⇒ ZSTM[R, E, A]): ZSTM[R, E, List[A]]

    Permalink

    Loops with the specified transactional function, collecting the results into a list.

    Loops with the specified transactional function, collecting the results into a list. The moral equivalent of:

    var s  = initial
    var as = List.empty[A]
    
    while (cont(s)) {
      as = body(s) :: as
      s  = inc(s)
    }
    
    as.reverse
  51. def loopDiscard[R, E, S](initial: S)(cont: (S) ⇒ Boolean, inc: (S) ⇒ S)(body: (S) ⇒ ZSTM[R, E, Any]): ZSTM[R, E, Unit]

    Permalink

    Loops with the specified transactional function purely for its transactional effects.

    Loops with the specified transactional function purely for its transactional effects. The moral equivalent of:

    var s = initial
    
    while (cont(s)) {
      body(s)
      s = inc(s)
    }
  52. def mergeAll[R, E, A, B](in: Iterable[ZSTM[R, E, A]])(zero: B)(f: (B, A) ⇒ B): ZSTM[R, E, B]

    Permalink

    Merges an Iterable[ZSTM] to a single ZSTM, working sequentially.

  53. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  54. val none: USTM[Option[Nothing]]

    Permalink

    Returns an effect with the empty value.

  55. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  56. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  57. def partition[R, E, A, B](in: Iterable[A])(f: (A) ⇒ ZSTM[R, E, B])(implicit ev: CanFail[E]): ZSTM[R, Nothing, (Iterable[E], Iterable[B])]

    Permalink

    Feeds elements of type A to a function f that returns an effect.

    Feeds elements of type A to a function f that returns an effect. Collects all successes and failures in a tupled fashion.

  58. def reduceAll[R, R1 <: R, E, A](a: ZSTM[R, E, A], as: Iterable[ZSTM[R1, E, A]])(f: (A, A) ⇒ A): ZSTM[R1, E, A]

    Permalink

    Reduces an Iterable[ZSTM] to a single ZSTM, working sequentially.

  59. def replicate[R, E, A](n: Int)(tx: ZSTM[R, E, A]): Iterable[ZSTM[R, E, A]]

    Permalink

    Replicates the given effect n times.

    Replicates the given effect n times. If 0 or negative numbers are given, an empty Iterable will return.

  60. def replicateSTM[R, E, A](n: Int)(transaction: ZSTM[R, E, A]): ZSTM[R, E, Iterable[A]]

    Permalink

    Performs this transaction the specified number of times and collects the results.

  61. def replicateSTMDiscard[R, E, A](n: Int)(transaction: ZSTM[R, E, A]): ZSTM[R, E, Unit]

    Permalink

    Performs this transaction the specified number of times, discarding the results.

  62. val retry: USTM[Nothing]

    Permalink

    Abort and retry the whole transaction when any of the underlying transactional variables have changed.

  63. def right[A](a: ⇒ A): USTM[Either[Nothing, A]]

    Permalink

    Returns an effect with the value on the right part.

  64. def service[A](implicit arg0: zio.Tag[A], arg1: IsNotIntersection[A]): ZSTM[A, Nothing, A]

    Permalink

    Accesses the specified service in the environment of the effect.

  65. def serviceAt[Service]: ServiceAtPartiallyApplied[Service]

    Permalink

    Accesses the service corresponding to the specified key in the environment.

  66. def serviceWith[Service]: ServiceWithPartiallyApplied[Service]

    Permalink

    Effectfully accesses the specified service in the environment of the effect.

  67. def serviceWithSTM[Service]: ServiceWithSTMPartiallyApplied[Service]

    Permalink

    Effectfully accesses the specified service in the environment of the effect.

  68. def some[A](a: ⇒ A): USTM[Option[A]]

    Permalink

    Returns an effect with the optional value.

  69. def succeed[A](a: ⇒ A): USTM[A]

    Permalink

    Returns an STM effect that succeeds with the specified value.

  70. def suspend[R, E, A](stm: ⇒ ZSTM[R, E, A]): ZSTM[R, E, A]

    Permalink

    Suspends creation of the specified transaction lazily.

  71. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  72. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  73. val unit: USTM[Unit]

    Permalink

    Returns an STM effect that succeeds with Unit.

  74. def unless[R, E, A](b: ⇒ Boolean)(stm: ⇒ ZSTM[R, E, A]): ZSTM[R, E, Option[A]]

    Permalink

    The moral equivalent of if (!p) exp

  75. def unlessSTM[R, E](b: ZSTM[R, E, Boolean]): UnlessSTM[R, E]

    Permalink

    The moral equivalent of if (!p) exp when p has side-effects

  76. def validate[R, E, A, B](in: NonEmptyChunk[A])(f: (A) ⇒ ZSTM[R, E, B])(implicit ev: CanFail[E]): ZSTM[R, ::[E], NonEmptyChunk[B]]

    Permalink

    Feeds elements of type A to f and accumulates all errors in error channel or successes in success channel.

    Feeds elements of type A to f and accumulates all errors in error channel or successes in success channel.

    This combinator is lossy meaning that if there are errors all successes will be lost. To retain all information please use partition.

  77. def validate[R, E, A, B, Collection[+Element] <: Iterable[Element]](in: Collection[A])(f: (A) ⇒ ZSTM[R, E, B])(implicit bf: zio.BuildFrom[Collection[A], B, Collection[B]], ev: CanFail[E]): ZSTM[R, ::[E], Collection[B]]

    Permalink

    Feeds elements of type A to f and accumulates all errors in error channel or successes in success channel.

    Feeds elements of type A to f and accumulates all errors in error channel or successes in success channel.

    This combinator is lossy meaning that if there are errors all successes will be lost. To retain all information please use partition.

  78. def validateFirst[R, E, A, B, Collection[+Element] <: Iterable[Element]](in: Collection[A])(f: (A) ⇒ ZSTM[R, E, B])(implicit bf: zio.BuildFrom[Collection[A], E, Collection[E]], ev: CanFail[E]): ZSTM[R, Collection[E], B]

    Permalink

    Feeds elements of type A to f until it succeeds.

    Feeds elements of type A to f until it succeeds. Returns first success or the accumulation of all errors.

  79. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  80. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  81. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  82. def when[R, E, A](b: ⇒ Boolean)(stm: ⇒ ZSTM[R, E, A]): ZSTM[R, E, Option[A]]

    Permalink

    The moral equivalent of if (p) exp

  83. def whenCase[R, E, A, B](a: ⇒ A)(pf: PartialFunction[A, ZSTM[R, E, B]]): ZSTM[R, E, Option[B]]

    Permalink

    Runs an effect when the supplied PartialFunction matches for the given value, otherwise does nothing.

  84. def whenCaseSTM[R, E, A, B](a: ZSTM[R, E, A])(pf: PartialFunction[A, ZSTM[R, E, B]]): ZSTM[R, E, Option[B]]

    Permalink

    Runs an effect when the supplied PartialFunction matches for the given effectful value, otherwise does nothing.

  85. def whenSTM[R, E](b: ZSTM[R, E, Boolean]): WhenSTM[R, E]

    Permalink

    The moral equivalent of if (p) exp when p has side-effects

Deprecated Value Members

  1. def access[R]: EnvironmentWithPartiallyApplied[R]

    Permalink

    Accesses the environment of the transaction.

    Accesses the environment of the transaction.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use environmentWith

  2. def accessM[R]: EnvironmentWithSTMPartiallyApplied[R]

    Permalink

    Accesses the environment of the transaction to perform a transaction.

    Accesses the environment of the transaction to perform a transaction.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use environmentWithSTM

  3. def accessSTM[R]: EnvironmentWithSTMPartiallyApplied[R]

    Permalink

    Accesses the environment of the transaction to perform a transaction.

    Accesses the environment of the transaction to perform a transaction.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use environmentWithSTM

  4. def collectAll_[R, E, A](in: Iterable[ZSTM[R, E, A]]): ZSTM[R, E, Unit]

    Permalink

    Collects all the transactional effects, returning a single transactional effect that produces Unit.

    Collects all the transactional effects, returning a single transactional effect that produces Unit.

    Equivalent to collectAll(i).unit, but without the cost of building the list of results.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use collectAllDiscard

  5. def foreach_[R, E, A](in: Iterable[A])(f: (A) ⇒ ZSTM[R, E, Any]): ZSTM[R, E, Unit]

    Permalink

    Applies the function f to each element of the Iterable[A] and returns a transactional effect that produces Unit.

    Applies the function f to each element of the Iterable[A] and returns a transactional effect that produces Unit.

    Equivalent to foreach(as)(f).unit, but without the cost of building the list of results.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use foreachDiscard

  6. def fromFunction[R, A](f: (ZEnvironment[R]) ⇒ A): URSTM[R, A]

    Permalink

    Lifts a function R => A into a URSTM[R, A].

    Lifts a function R => A into a URSTM[R, A].

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use access

  7. def fromFunctionM[R, E, A](f: (ZEnvironment[R]) ⇒ STM[E, A]): ZSTM[R, E, A]

    Permalink

    Lifts an effectful function whose effect requires no environment into an effect that requires the input to the function.

    Lifts an effectful function whose effect requires no environment into an effect that requires the input to the function.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use environmentWithZIO

  8. def ifM[R, E](b: ZSTM[R, E, Boolean]): IfSTM[R, E]

    Permalink

    Runs onTrue if the result of b is true and onFalse otherwise.

    Runs onTrue if the result of b is true and onFalse otherwise.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use ifSTM

  9. def loop_[R, E, S](initial: S)(cont: (S) ⇒ Boolean, inc: (S) ⇒ S)(body: (S) ⇒ ZSTM[R, E, Any]): ZSTM[R, E, Unit]

    Permalink

    Loops with the specified transactional function purely for its transactional effects.

    Loops with the specified transactional function purely for its transactional effects. The moral equivalent of:

    var s = initial
    
    while (cont(s)) {
      body(s)
      s = inc(s)
    }
    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use loopDiscard

  10. def mapN[R, E, A, B, C, D, F](tx1: ZSTM[R, E, A], tx2: ZSTM[R, E, B], tx3: ZSTM[R, E, C], tx4: ZSTM[R, E, D])(f: (A, B, C, D) ⇒ F): ZSTM[R, E, F]

    Permalink

    Sequentially zips the specified effects using the specified combiner function.

    Sequentially zips the specified effects using the specified combiner function.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use zip

  11. def mapN[R, E, A, B, C, D](tx1: ZSTM[R, E, A], tx2: ZSTM[R, E, B], tx3: ZSTM[R, E, C])(f: (A, B, C) ⇒ D): ZSTM[R, E, D]

    Permalink

    Sequentially zips the specified effects using the specified combiner function.

    Sequentially zips the specified effects using the specified combiner function.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use zip

  12. def mapN[R, E, A, B, C](tx1: ZSTM[R, E, A], tx2: ZSTM[R, E, B])(f: (A, B) ⇒ C): ZSTM[R, E, C]

    Permalink

    Sequentially zips the specified effects using the specified combiner function.

    Sequentially zips the specified effects using the specified combiner function.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use zip

  13. def partial[A](a: ⇒ A): STM[Throwable, A]

    Permalink

    Creates an STM value from a partial (but pure) function.

    Creates an STM value from a partial (but pure) function.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use attempt

  14. def replicateM[R, E, A](n: Int)(transaction: ZSTM[R, E, A]): ZSTM[R, E, Iterable[A]]

    Permalink

    Performs this transaction the specified number of times and collects the results.

    Performs this transaction the specified number of times and collects the results.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use replicateSTM

  15. def replicateM_[R, E, A](n: Int)(transaction: ZSTM[R, E, A]): ZSTM[R, E, Unit]

    Permalink

    Performs this transaction the specified number of times, discarding the results.

    Performs this transaction the specified number of times, discarding the results.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use replicateSTMDiscard

  16. def require[R, E, A](error: ⇒ E): (ZSTM[R, E, Option[A]]) ⇒ ZSTM[R, E, A]

    Permalink

    Requires that the given ZSTM[R, E, Option[A]] contain a value.

    Requires that the given ZSTM[R, E, Option[A]] contain a value. If there is no value, then the specified error will be raised.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use someOrFail

  17. def services[A, B, C, D](implicit arg0: zio.Tag[A], arg1: IsNotIntersection[A], arg2: zio.Tag[B], arg3: IsNotIntersection[B], arg4: zio.Tag[C], arg5: IsNotIntersection[C], arg6: zio.Tag[D], arg7: IsNotIntersection[D]): ZSTM[A with B with C with D, Nothing, (A, B, C, D)]

    Permalink

    Accesses the specified services in the environment of the effect.

    Accesses the specified services in the environment of the effect.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use service

  18. def services[A, B, C](implicit arg0: zio.Tag[A], arg1: IsNotIntersection[A], arg2: zio.Tag[B], arg3: IsNotIntersection[B], arg4: zio.Tag[C], arg5: IsNotIntersection[C]): ZSTM[A with B with C, Nothing, (A, B, C)]

    Permalink

    Accesses the specified services in the environment of the effect.

    Accesses the specified services in the environment of the effect.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use service

  19. def services[A, B](implicit arg0: zio.Tag[A], arg1: IsNotIntersection[A], arg2: zio.Tag[B], arg3: IsNotIntersection[B]): ZSTM[A with B, Nothing, (A, B)]

    Permalink

    Accesses the specified services in the environment of the effect.

    Accesses the specified services in the environment of the effect.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use service

  20. def unlessM[R, E](b: ZSTM[R, E, Boolean]): UnlessSTM[R, E]

    Permalink

    The moral equivalent of if (!p) exp when p has side-effects

    The moral equivalent of if (!p) exp when p has side-effects

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use unlessSTM

  21. def whenCaseM[R, E, A, B](a: ZSTM[R, E, A])(pf: PartialFunction[A, ZSTM[R, E, B]]): ZSTM[R, E, Option[B]]

    Permalink

    Runs an effect when the supplied PartialFunction matches for the given effectful value, otherwise does nothing.

    Runs an effect when the supplied PartialFunction matches for the given effectful value, otherwise does nothing.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use whenCaseSTM

  22. def whenM[R, E](b: ZSTM[R, E, Boolean]): WhenSTM[R, E]

    Permalink

    The moral equivalent of if (p) exp when p has side-effects

    The moral equivalent of if (p) exp when p has side-effects

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use whenSTM

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped