Object/Trait

zio

ZIO

Related Docs: trait ZIO | package zio

Permalink

object ZIO extends ZIOCompanionPlatformSpecific with Serializable

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

Type Members

  1. final class AccessMPartiallyApplied[R] extends AnyVal

    Permalink
  2. final class AccessPartiallyApplied[R] extends AnyVal

    Permalink
  3. final class BracketAcquire[-R, +E, +A] extends AnyVal

    Permalink
  4. final class BracketAcquire_[-R, +E] extends AnyVal

    Permalink
  5. final class BracketExitAcquire[-R, +E, +A] extends AnyVal

    Permalink
  6. final class BracketExitRelease[-R, +E, E1, +A, B] extends AnyRef

    Permalink
  7. final class BracketForkAcquire[-R, +E, +A] extends AnyVal

    Permalink
  8. final class BracketForkAcquire_[-R, +E] extends AnyVal

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

    Permalink
  10. final class BracketForkExitRelease[-R, +E, E1, +A, B] extends AnyRef

    Permalink
  11. final class BracketForkRelease[-R, +E, +A] extends AnyRef

    Permalink
  12. final class BracketForkRelease_[-R, +E] extends AnyRef

    Permalink
  13. final class BracketRelease[-R, +E, +A] extends AnyRef

    Permalink
  14. final class BracketReleaseFn[R, E, A, B] extends ZIOFn2[A, Exit[E, B], URIO[R, Any]]

    Permalink
  15. final class BracketRelease_[-R, +E] extends AnyRef

    Permalink
  16. final class ConstFn[A, B] extends ZIOFn1[A, B]

    Permalink
  17. final class ConstZIOFn[R, E, A, B] extends ZIOFn1[A, ZIO[R, E, B]]

    Permalink
  18. final class FoldCauseMFailureFn[R, E, E2, A] extends ZIOFn1[Cause[E], ZIO[R, E2, A]]

    Permalink
  19. final class IfM[R, E] extends AnyVal

    Permalink
  20. final class InterruptStatusRestore extends AnyVal

    Permalink
  21. final class MapErrorCauseFn[R, E, E2, A] extends ZIOFn1[Cause[E], ZIO[R, E2, Nothing]]

    Permalink
  22. final class MapErrorFn[R, E, E2, A] extends ZIOFn1[Cause[E], ZIO[R, E2, Nothing]]

    Permalink
  23. final class MapFn[R, E, A, B] extends ZIOFn1[A, ZIO[R, E, B]]

    Permalink
  24. final class ProvideSomeLayer[R0 <: Has[_], -R, +E, +A] extends AnyVal

    Permalink
  25. final class SucceedFn[R, E, A] extends ZIOFn1[A, ZIO[R, E, A]]

    Permalink
  26. final class TapCauseRefailFn[R, E, E1 >: E, A] extends ZIOFn1[Cause[E], ZIO[R, E1, Nothing]]

    Permalink
  27. final class TapErrorRefailFn[R, E, E1 >: E, A] extends ZIOFn1[Cause[E], ZIO[R, E1, Nothing]]

    Permalink
  28. final class TapFn[R, E, A] extends ZIOFn1[A, ZIO[R, E, A]]

    Permalink
  29. final class TimeoutTo[R, E, A, B] extends AnyRef

    Permalink
  30. implicit final class ZIOAutocloseableOps[R, E, A <: AutoCloseable] extends AnyVal

    Permalink
  31. implicit final class ZIOWithFilterOps[R, E, A] extends AnyVal

    Permalink
  32. implicit final class ZioRefineToOrDieOps[R, E <: Throwable, A] extends AnyVal

    Permalink
  33. final class ZipLeftFn[R, E, A, B] extends ZIOFn1[B, ZIO[R, E, B]]

    Permalink
  34. final class ZipRightFn[R, E, A, B] extends ZIOFn1[A, ZIO[R, E, B]]

    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](v: ZIO[R, E, Either[E, A]]): ZIO[R, E, A]

    Permalink

    Submerges the error case of an Either into the ZIO.

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

  5. def access[R]: AccessPartiallyApplied[R]

    Permalink

    Accesses the environment of the effect.

    Accesses the environment of the effect.

    val portNumber = effect.access(_.config.portNumber)
  6. def accessM[R]: AccessMPartiallyApplied[R]

    Permalink

    Effectfully accesses the environment of the effect.

  7. def allowInterrupt: UIO[Unit]

    Permalink

    Makes an explicit check to see if the fiber has been interrupted, and if so, performs self-interruption

  8. def apply[A](a: ⇒ A): Task[A]

    Permalink
  9. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  10. def awaitAllChildren: UIO[Unit]

    Permalink

    Awaits all child fibers of the fiber executing the effect.

  11. def bracket[R, E, A, B](acquire: ZIO[R, E, A], release: (A) ⇒ URIO[R, Any], use: (A) ⇒ ZIO[R, E, B]): ZIO[R, E, B]

    Permalink

    Uncurried version.

    Uncurried version. Doesn't offer curried syntax and have worse type-inference characteristics, but guarantees no extra allocations of intermediate zio.ZIO.BracketAcquire and zio.ZIO.BracketRelease objects.

  12. def bracket[R, E, A](acquire: ZIO[R, E, A]): BracketAcquire[R, E, A]

    Permalink

    When this effect represents acquisition of a resource (for example, opening a file, launching a thread, etc.), bracket can be used to ensure the acquisition is not interrupted and the resource is always released.

    When this effect represents acquisition of a resource (for example, opening a file, launching a thread, etc.), bracket can be used to ensure the acquisition is not interrupted and the resource is always released.

    The function does two things:

    1. Ensures this effect, which acquires the resource, will not be interrupted. Of course, acquisition may fail for internal reasons (an uncaught exception). 2. Ensures the release effect will not be interrupted, and will be executed so long as this effect successfully acquires the resource.

    In between acquisition and release of the resource, the use effect is executed.

    If the release effect fails, then the entire effect will fail even if the use effect succeeds. If this fail-fast behavior is not desired, errors produced by the release effect can be caught and ignored.

    openFile("data.json").bracket(closeFile) { file =>
      for {
        header <- readHeader(file)
        ...
      } yield result
    }
  13. def bracketExit[R, E, A, B](acquire: ZIO[R, E, A], release: (A, Exit[E, B]) ⇒ URIO[R, Any], use: (A) ⇒ ZIO[R, E, B]): ZIO[R, E, B]

    Permalink

    Uncurried version.

    Uncurried version. Doesn't offer curried syntax and has worse type-inference characteristics, but guarantees no extra allocations of intermediate zio.ZIO.BracketExitAcquire and zio.ZIO.BracketExitRelease objects.

  14. def bracketExit[R, E, A](acquire: ZIO[R, E, A]): BracketExitAcquire[R, E, A]

    Permalink

    Acquires a resource, uses the resource, and then releases the resource.

    Acquires a resource, uses the resource, and then releases the resource. Neither the acquisition nor the release will be interrupted, and the resource is guaranteed to be released, so long as the acquire effect succeeds. If use fails, then after release, the returned effect will fail with the same error.

  15. def checkInterruptible[R, E, A](f: (zio.InterruptStatus) ⇒ ZIO[R, E, A]): ZIO[R, E, A]

    Permalink

    Checks the interrupt status, and produces the effect returned by the specified callback.

  16. def checkTraced[R, E, A](f: (zio.TracingStatus) ⇒ ZIO[R, E, A]): ZIO[R, E, A]

    Permalink

    Checks the ZIO Tracing status, and produces the effect returned by the specified callback.

  17. def children: UIO[Iterable[Fiber[Any, Any]]]

    Permalink

    Provides access to the list of child fibers supervised by this fiber.

  18. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  19. def collectAll[R, E, A](in: Iterable[ZIO[R, E, A]]): ZIO[R, E, List[A]]

    Permalink

    Evaluate each effect in the structure from left to right, and collect the results.

    Evaluate each effect in the structure from left to right, and collect the results. For a parallel version, see collectAllPar.

  20. def collectAllPar[R, E, A](as: Iterable[ZIO[R, E, A]]): ZIO[R, E, List[A]]

    Permalink

    Evaluate each effect in the structure in parallel, and collect the results.

    Evaluate each effect in the structure in parallel, and collect the results. For a sequential version, see collectAll.

  21. def collectAllParN[R, E, A](n: Int)(as: Iterable[ZIO[R, E, A]]): ZIO[R, E, List[A]]

    Permalink

    Evaluate each effect in the structure in parallel, and collect the results.

    Evaluate each effect in the structure in parallel, and collect the results. For a sequential version, see collectAll.

    Unlike collectAllPar, this method will use at most n fibers.

  22. def collectAllSuccesses[R, E, A](in: Iterable[ZIO[R, E, A]]): URIO[R, List[A]]

    Permalink

    Evaluate and run each effect in the structure and collect discarding failed ones.

  23. def collectAllSuccessesPar[R, E, A](in: Iterable[ZIO[R, E, A]]): URIO[R, List[A]]

    Permalink

    Evaluate and run each effect in the structure in parallel, and collect discarding failed ones.

  24. def collectAllSuccessesParN[R, E, A](n: Int)(in: Iterable[ZIO[R, E, A]]): URIO[R, List[A]]

    Permalink

    Evaluate and run each effect in the structure in parallel, and collect discarding failed ones.

    Evaluate and run each effect in the structure in parallel, and collect discarding failed ones.

    Unlike collectAllSuccessesPar, this method will use at most up to n fibers.

  25. def collectAllWith[R, E, A, U](in: Iterable[ZIO[R, E, A]])(f: PartialFunction[A, U]): ZIO[R, E, List[U]]

    Permalink

    Evaluate each effect in the structure with collectAll, and collect the results with given partial function.

  26. def collectAllWithPar[R, E, A, U](in: Iterable[ZIO[R, E, A]])(f: PartialFunction[A, U]): ZIO[R, E, List[U]]

    Permalink

    Evaluate each effect in the structure with collectAllPar, and collect the results with given partial function.

  27. def collectAllWithParN[R, E, A, U](n: Int)(in: Iterable[ZIO[R, E, A]])(f: PartialFunction[A, U]): ZIO[R, E, List[U]]

    Permalink

    Evaluate each effect in the structure with collectAllPar, and collect the results with given partial function.

    Evaluate each effect in the structure with collectAllPar, and collect the results with given partial function.

    Unlike collectAllWithPar, this method will use at most up to n fibers.

  28. def descriptor: UIO[Fiber.Descriptor]

    Permalink

    Returns information about the current fiber, such as its identity.

  29. def descriptorWith[R, E, A](f: (Fiber.Descriptor) ⇒ ZIO[R, E, A]): ZIO[R, E, A]

    Permalink

    Constructs an effect based on information about the current fiber, such as its identity.

  30. def die(t: ⇒ Throwable): UIO[Nothing]

    Permalink

    Returns an effect that dies with the specified Throwable.

    Returns an effect that dies with the specified Throwable. This method can be used for terminating a fiber because a defect has been detected in the code.

  31. def dieMessage(message: ⇒ String): UIO[Nothing]

    Permalink

    Returns an effect that dies with a java.lang.RuntimeException having the specified text message.

    Returns an effect that dies with a java.lang.RuntimeException having the specified text message. This method can be used for terminating a fiber because a defect has been detected in the code.

  32. def disown(fiber: Fiber[Any, Any]): UIO[Boolean]

    Permalink

    Disowns the specified fiber, which means that when this fiber exits, the specified fiber will not be interrupted.

    Disowns the specified fiber, which means that when this fiber exits, the specified fiber will not be interrupted. Disowned fibers become new root fibers, and are not terminated automatically when any other fibers ends.

  33. val disownChildren: UIO[Boolean]

    Permalink

    Disowns all children.

  34. def done[E, A](r: ⇒ Exit[E, A]): IO[E, A]

    Permalink

    Returns an effect from a zio.Exit value.

  35. def effect[A](effect: ⇒ A): Task[A]

    Permalink

    Imports a synchronous side-effect into a pure ZIO value, translating any thrown exceptions into typed failed effects creating with ZIO.fail.

    Imports a synchronous side-effect into a pure ZIO value, translating any thrown exceptions into typed failed effects creating with ZIO.fail.

    def putStrLn(line: String): Task[Unit] = Task.effect(println(line))
  36. def effectAsync[R, E, A](register: ((ZIO[R, E, A]) ⇒ Unit) ⇒ Unit, blockingOn: List[Id] = Nil): ZIO[R, E, A]

    Permalink

    Imports an asynchronous side-effect into a pure ZIO value.

    Imports an asynchronous side-effect into a pure ZIO value. See effectAsyncMaybe for the more expressive variant of this function that can return a value synchronously.

    The callback function ZIO[R, E, A] => Unit must be called at most once.

    The list of fibers, that may complete the async callback, is used to provide better diagnostics.

  37. def effectAsyncInterrupt[R, E, A](register: ((ZIO[R, E, A]) ⇒ Unit) ⇒ Either[Canceler[R], ZIO[R, E, A]], blockingOn: List[Id] = Nil): ZIO[R, E, A]

    Permalink

    Imports an asynchronous side-effect into a ZIO effect.

    Imports an asynchronous side-effect into a ZIO effect. The side-effect has the option of returning the value synchronously, which is useful in cases where it cannot be determined if the effect is synchronous or asynchronous until the side-effect is actually executed. The effect also has the option of returning a canceler, which will be used by the runtime to cancel the asynchronous effect if the fiber executing the effect is interrupted.

    If the register function returns a value synchronously, then the callback function ZIO[R, E, A] => Unit must not be called. Otherwise the callback function must be called at most once.

    The list of fibers, that may complete the async callback, is used to provide better diagnostics.

  38. def effectAsyncM[R, E, A](register: ((ZIO[R, E, A]) ⇒ Unit) ⇒ ZIO[R, E, Any]): ZIO[R, E, A]

    Permalink

    Imports an asynchronous effect into a pure ZIO value.

    Imports an asynchronous effect into a pure ZIO value. This formulation is necessary when the effect is itself expressed in terms of ZIO.

  39. def effectAsyncMaybe[R, E, A](register: ((ZIO[R, E, A]) ⇒ Unit) ⇒ Option[ZIO[R, E, A]], blockingOn: List[Id] = Nil): ZIO[R, E, A]

    Permalink

    Imports an asynchronous effect into a pure ZIO value, possibly returning the value synchronously.

    Imports an asynchronous effect into a pure ZIO value, possibly returning the value synchronously.

    If the register function returns a value synchronously, then the callback function ZIO[R, E, A] => Unit must not be called. Otherwise the callback function must be called at most once.

    The list of fibers, that may complete the async callback, is used to provide better diagnostics.

  40. def effectSuspend[R, A](rio: ⇒ RIO[R, A]): RIO[R, A]

    Permalink

    Returns a lazily constructed effect, whose construction may itself require effects.

    Returns a lazily constructed effect, whose construction may itself require effects. When no environment is required (i.e., when R == Any) it is conceptually equivalent to flatten(effect(io)).

  41. def effectSuspendTotal[R, E, A](zio: ⇒ ZIO[R, E, A]): ZIO[R, E, A]

    Permalink

    Returns a lazily constructed effect, whose construction may itself require effects.

    Returns a lazily constructed effect, whose construction may itself require effects. The effect must not throw any exceptions. When no environment is required (i.e., when R == Any) it is conceptually equivalent to flatten(effectTotal(zio)). If you wonder if the effect throws exceptions, do not use this method, use Task.effectSuspend or ZIO.effectSuspend.

  42. def effectSuspendTotalWith[R, E, A](f: (Platform, Id) ⇒ ZIO[R, E, A]): ZIO[R, E, A]

    Permalink

    Returns a lazily constructed effect, whose construction may itself require effects.

    Returns a lazily constructed effect, whose construction may itself require effects. The effect must not throw any exceptions. When no environment is required (i.e., when R == Any) it is conceptually equivalent to flatten(effectTotal(zio)). If you wonder if the effect throws exceptions, do not use this method, use Task.effectSuspend or ZIO.effectSuspend.

  43. def effectSuspendWith[R, A](f: (Platform, Id) ⇒ RIO[R, A]): RIO[R, A]

    Permalink

    Returns a lazily constructed effect, whose construction may itself require effects.

    Returns a lazily constructed effect, whose construction may itself require effects. When no environment is required (i.e., when R == Any) it is conceptually equivalent to flatten(effect(io)).

  44. def effectTotal[A](effect: ⇒ A): UIO[A]

    Permalink

    Imports a total synchronous effect into a pure ZIO value.

    Imports a total synchronous effect into a pure ZIO value. The effect must not throw any exceptions. If you wonder if the effect throws exceptions, then do not use this method, use Task.effect, IO.effect, or ZIO.effect.

    val nanoTime: UIO[Long] = IO.effectTotal(System.nanoTime())
  45. def environment[R]: URIO[R, R]

    Permalink

    Accesses the whole environment of the effect.

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  48. def fail[E](error: ⇒ E): IO[E, Nothing]

    Permalink

    Returns an effect that models failure with the specified error.

    Returns an effect that models failure with the specified error. The moral equivalent of throw for pure code.

  49. val fiberId: UIO[Id]

    Permalink

    Returns the Fiber.Id of the fiber executing the effect that calls this method.

  50. def filter[R, E, A](as: Iterable[A])(f: (A) ⇒ ZIO[R, E, Boolean]): ZIO[R, E, List[A]]

    Permalink

    Filters the collection using the specified effectual predicate.

  51. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  52. def first[E, A, B]: ZIO[(A, B), E, A]

    Permalink

    Returns an effectful function that extracts out the first element of a tuple.

  53. def firstSuccessOf[R, R1 <: R, E, A](zio: ZIO[R, E, A], rest: Iterable[ZIO[R1, E, A]]): ZIO[R1, E, A]

    Permalink

    Returns an effect that races this effect with all the specified effects, yielding the value of the first effect to succeed with a value.

    Returns an effect that races this effect with all the specified effects, yielding the value of the first effect to succeed with a value. Losers of the race will be interrupted immediately

  54. def flatten[R, E, A](zio: ZIO[R, E, ZIO[R, E, A]]): ZIO[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.

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

    Permalink

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

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

    Permalink

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

  57. final def foreach[R, E, A, B](in: Chunk[A])(f: (A) ⇒ ZIO[R, E, B]): ZIO[R, E, Chunk[B]]

    Permalink

    Applies the function f to each element of the Chunk[A] and returns the results in a new Chunk[B].

    Applies the function f to each element of the Chunk[A] and returns the results in a new Chunk[B].

    For a parallel version of this method, see foreachPar.

  58. final def foreach[R, E, A, B](in: Option[A])(f: (A) ⇒ ZIO[R, E, B]): ZIO[R, E, Option[B]]

    Permalink

    Applies the function f if the argument is non-empty and returns the results in a new Option[B].

  59. def foreach[R, E, A, B](in: Iterable[A])(f: (A) ⇒ ZIO[R, E, B]): ZIO[R, E, List[B]]

    Permalink

    Applies the function f to each element of the Iterable[A] and returns the results in a new List[B].

    Applies the function f to each element of the Iterable[A] and returns the results in a new List[B].

    For a parallel version of this method, see foreachPar.

  60. final def foreachPar[R, E, A, B](as: Chunk[A])(fn: (A) ⇒ ZIO[R, E, B]): ZIO[R, E, Chunk[B]]

    Permalink

    Applies the function f to each element of the Chunk[A] in parallel, and returns the results in a new Chunk[B].

    Applies the function f to each element of the Chunk[A] in parallel, and returns the results in a new Chunk[B].

    For a sequential version of this method, see foreach.

  61. def foreachPar[R, E, A, B](as: Iterable[A])(fn: (A) ⇒ ZIO[R, E, B]): ZIO[R, E, List[B]]

    Permalink

    Applies the function f to each element of the Iterable[A] in parallel, and returns the results in a new List[B].

    Applies the function f to each element of the Iterable[A] in parallel, and returns the results in a new List[B].

    For a sequential version of this method, see foreach.

  62. def foreachParN[R, E, A, B](n: Int)(as: Iterable[A])(fn: (A) ⇒ ZIO[R, E, B]): ZIO[R, E, List[B]]

    Permalink

    Applies the function f to each element of the Iterable[A] in parallel, and returns the results in a new List[B].

    Applies the function f to each element of the Iterable[A] in parallel, and returns the results in a new List[B].

    Unlike foreachPar, this method will use at most up to n fibers.

  63. def foreachParN_[R, E, A](n: Int)(as: Iterable[A])(f: (A) ⇒ ZIO[R, E, Any]): ZIO[R, E, Unit]

    Permalink

    Applies the function f to each element of the Iterable[A] and runs produced effects in parallel, discarding the results.

    Applies the function f to each element of the Iterable[A] and runs produced effects in parallel, discarding the results.

    Unlike foreachPar_, this method will use at most up to n fibers.

  64. final def foreachPar_[R, E, A](as: Chunk[A])(f: (A) ⇒ ZIO[R, E, Any]): ZIO[R, E, Unit]

    Permalink

    Applies the function f to each element of the Iterable[A] and runs produced effects in parallel, discarding the results.

    Applies the function f to each element of the Iterable[A] and runs produced effects in parallel, discarding the results.

    For a sequential version of this method, see foreach_.

  65. def foreachPar_[R, E, A](as: Iterable[A])(f: (A) ⇒ ZIO[R, E, Any]): ZIO[R, E, Unit]

    Permalink

    Applies the function f to each element of the Iterable[A] and runs produced effects in parallel, discarding the results.

    Applies the function f to each element of the Iterable[A] and runs produced effects in parallel, discarding the results.

    For a sequential version of this method, see foreach_.

    Optimized to avoid keeping full tree of effects, so that method could be able to handle large input sequences. Behaves almost like this code:

    as.foldLeft(ZIO.unit) { (acc, a) => acc.zipParLeft(f(a)) }

    Additionally, interrupts all effects on any failure.

  66. final def foreach_[R, E, A](as: Chunk[A])(f: (A) ⇒ ZIO[R, E, Any]): ZIO[R, E, Unit]

    Permalink

    Applies the function f to each element of the Chunk[A] and returns the results in a new Chunk[B].

    Applies the function f to each element of the Chunk[A] and returns the results in a new Chunk[B].

    For a parallel version of this method, see foreachPar.

  67. def foreach_[R, E, A](as: Iterable[A])(f: (A) ⇒ ZIO[R, E, Any]): ZIO[R, E, Unit]

    Permalink

    Applies the function f to each element of the Iterable[A] and runs produced effects sequentially.

    Applies the function f to each element of the Iterable[A] and runs produced effects sequentially.

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

  68. def forkAll[R, E, A](as: Iterable[ZIO[R, E, A]]): URIO[R, Fiber[E, List[A]]]

    Permalink

    Returns an effect that forks all of the specified values, and returns a composite fiber that produces a list of their results, in order.

  69. def forkAll_[R, E, A](as: Iterable[ZIO[R, E, A]]): URIO[R, Unit]

    Permalink

    Returns an effect that forks all of the specified values, and returns a composite fiber that produces unit.

    Returns an effect that forks all of the specified values, and returns a composite fiber that produces unit. This version is faster than forkAll in cases where the results of the forked fibers are not needed.

  70. def fromEither[E, A](v: ⇒ Either[E, A]): IO[E, A]

    Permalink

    Lifts an Either into a ZIO value.

  71. def fromFiber[E, A](fiber: ⇒ Fiber[E, A]): IO[E, A]

    Permalink

    Creates a ZIO value that represents the exit value of the specified fiber.

  72. def fromFiberM[E, A](fiber: IO[E, Fiber[E, A]]): IO[E, A]

    Permalink

    Creates a ZIO value that represents the exit value of the specified fiber.

  73. def fromFunction[R, A](f: (R) ⇒ A): URIO[R, A]

    Permalink

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

  74. def fromFunctionFuture[R, A](f: (R) ⇒ Future[A]): RIO[R, A]

    Permalink

    Lifts a function returning Future into an effect that requires the input to the function.

  75. def fromFunctionM[R, E, A](f: (R) ⇒ IO[E, A]): ZIO[R, E, A]

    Permalink

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

  76. def fromFuture[A](make: (ExecutionContext) ⇒ Future[A]): Task[A]

    Permalink

    Imports a function that creates a scala.concurrent.Future from an scala.concurrent.ExecutionContext into a ZIO.

  77. def fromFutureInterrupt[A](make: (ExecutionContext) ⇒ Future[A]): Task[A]

    Permalink

    Imports a function that creates a scala.concurrent.Future from an scala.concurrent.ExecutionContext into a ZIO.

    Imports a function that creates a scala.concurrent.Future from an scala.concurrent.ExecutionContext into a ZIO. The provided ExecutionContext will interrupt the Future between asynchronous operations such as map and flatMap if this effect is interrupted. Note that no attempt will be made to interrupt a Future blocking on a synchronous operation and that the Future must be created using the provided ExecutionContext.

  78. def fromOption[A](v: ⇒ Option[A]): IO[Unit, A]

    Permalink

    Lifts an Option into a ZIO.

  79. def fromTry[A](value: ⇒ Try[A]): Task[A]

    Permalink

    Lifts a Try into a ZIO.

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

    Permalink
    Definition Classes
    AnyRef → Any
  81. final def getOrFail[A](v: ⇒ Option[A]): Task[A]

    Permalink

    Lifts an Option into a ZIO, if the option is not defined it fails with NoSuchElementException.

  82. def halt[E](cause: ⇒ Cause[E]): IO[E, Nothing]

    Permalink

    Returns an effect that models failure with the specified Cause.

  83. def haltWith[E](function: (() ⇒ ZTrace) ⇒ Cause[E]): IO[E, Nothing]

    Permalink

    Returns an effect that models failure with the specified Cause.

    Returns an effect that models failure with the specified Cause.

    This version takes in a lazily-evaluated trace that can be attached to the Cause via Cause.Traced.

  84. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  85. def identity[R]: URIO[R, R]

    Permalink

    Returns the identity effectful function, which performs no effects

  86. def ifM[R, E](b: ZIO[R, E, Boolean]): IfM[R, E]

    Permalink

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

  87. val infinity: URIO[Clock, Nothing]

    Permalink

    Like never, but fibers that running this effect won't be garbage collected unless interrupted.

  88. val interrupt: UIO[Nothing]

    Permalink

    Returns an effect that is interrupted as if by the fiber calling this method.

  89. def interruptAllChildren: UIO[Unit]

    Permalink

    Interrupts all child fibers of the fiber executing the effect.

  90. def interruptAs(fiberId: ⇒ Id): UIO[Nothing]

    Permalink

    Returns an effect that is interrupted as if by the specified fiber.

  91. def interruptible[R, E, A](zio: ZIO[R, E, A]): ZIO[R, E, A]

    Permalink

    Prefix form of ZIO#interruptible.

  92. def interruptibleMask[R, E, A](k: (InterruptStatusRestore) ⇒ ZIO[R, E, A]): ZIO[R, E, A]

    Permalink

    Makes the effect interruptible, but passes it a restore function that can be used to restore the inherited interruptibility from whatever region the effect is composed into.

  93. final def isInstanceOf[T0]: Boolean

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

    Permalink

    Iterates with the specified effectual function.

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

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

    Permalink

    Returns an effect with the value on the left part.

  96. def lock[R, E, A](executor: ⇒ Executor)(zio: ZIO[R, E, A]): ZIO[R, E, A]

    Permalink

    Returns an effect that will execute the specified effect fully on the provided executor, before returning to the default executor.

    Returns an effect that will execute the specified effect fully on the provided executor, before returning to the default executor. See ZIO!.lock.

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

    Permalink

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

    Loops with the specified effectual 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
  98. def loop_[R, E, S](initial: S)(cont: (S) ⇒ Boolean, inc: (S) ⇒ S)(body: (S) ⇒ ZIO[R, E, Any]): ZIO[R, E, Unit]

    Permalink

    Loops with the specified effectual function purely for its effects.

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

    var s = initial
    
    while (cont(s)) {
      body(s)
      s = inc(s)
    }
  99. def mapN[R, E, A, B, C, D, F](zio1: ZIO[R, E, A], zio2: ZIO[R, E, B], zio3: ZIO[R, E, C], zio4: ZIO[R, E, D])(f: (A, B, C, D) ⇒ F): ZIO[R, E, F]

    Permalink

    Sequentially zips the specified effects using the specified combiner function.

  100. def mapN[R, E, A, B, C, D](zio1: ZIO[R, E, A], zio2: ZIO[R, E, B], zio3: ZIO[R, E, C])(f: (A, B, C) ⇒ D): ZIO[R, E, D]

    Permalink

    Sequentially zips the specified effects using the specified combiner function.

  101. def mapN[R, E, A, B, C](zio1: ZIO[R, E, A], zio2: ZIO[R, E, B])(f: (A, B) ⇒ C): ZIO[R, E, C]

    Permalink

    Sequentially zips the specified effects using the specified combiner function.

  102. def mapParN[R, E, A, B, C, D, F](zio1: ZIO[R, E, A], zio2: ZIO[R, E, B], zio3: ZIO[R, E, C], zio4: ZIO[R, E, D])(f: (A, B, C, D) ⇒ F): ZIO[R, E, F]

    Permalink

    Returns an effect that executes the specified effects in parallel, combining their results with the specified f function.

    Returns an effect that executes the specified effects in parallel, combining their results with the specified f function. If any effect fails, then the other effects will be interrupted.

  103. def mapParN[R, E, A, B, C, D](zio1: ZIO[R, E, A], zio2: ZIO[R, E, B], zio3: ZIO[R, E, C])(f: (A, B, C) ⇒ D): ZIO[R, E, D]

    Permalink

    Returns an effect that executes the specified effects in parallel, combining their results with the specified f function.

    Returns an effect that executes the specified effects in parallel, combining their results with the specified f function. If any effect fails, then the other effects will be interrupted.

  104. def mapParN[R, E, A, B, C](zio1: ZIO[R, E, A], zio2: ZIO[R, E, B])(f: (A, B) ⇒ C): ZIO[R, E, C]

    Permalink

    Returns an effect that executes the specified effects in parallel, combining their results with the specified f function.

    Returns an effect that executes the specified effects in parallel, combining their results with the specified f function. If any effect fails, then the other effects will be interrupted.

  105. def mergeAll[R, E, A, B](in: Iterable[ZIO[R, E, A]])(zero: B)(f: (B, A) ⇒ B): ZIO[R, E, B]

    Permalink

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

  106. def mergeAllPar[R, E, A, B](in: Iterable[ZIO[R, E, A]])(zero: B)(f: (B, A) ⇒ B): ZIO[R, E, B]

    Permalink

    Merges an Iterable[IO] to a single IO, working in parallel.

    Merges an Iterable[IO] to a single IO, working in parallel.

    It's unsafe to execute side effects inside f, as f may be executed more than once for some of in elements during effect execution.

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

    Permalink
    Definition Classes
    AnyRef
  108. val never: UIO[Nothing]

    Permalink

    Returns a effect that will never produce anything.

    Returns a effect that will never produce anything. The moral equivalent of while(true) {}, only without the wasted CPU cycles. Fibers that suspended running this effect are automatically garbage collected on the JVM, because they cannot be reactivated.

  109. val none: UIO[Option[Nothing]]

    Permalink

    Returns an effect with the empty value.

  110. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  112. def partition[R, E, A, B](in: Iterable[A])(f: (A) ⇒ ZIO[R, E, B])(implicit ev: CanFail[E]): ZIO[R, Nothing, (List[E], List[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.

  113. def partitionPar[R, E, A, B](in: Iterable[A])(f: (A) ⇒ ZIO[R, E, B])(implicit ev: CanFail[E]): ZIO[R, Nothing, (List[E], List[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 parallel and returns the result as a tuple.

  114. def partitionParN[R, E, A, B](n: Int)(in: Iterable[A])(f: (A) ⇒ ZIO[R, E, B])(implicit ev: CanFail[E]): ZIO[R, Nothing, (List[E], List[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 parallel and returns the result as a tuple.

    Unlike partitionPar, this method will use at most up to n fibers.

  115. def provide[R, E, A](r: ⇒ R): (ZIO[R, E, A]) ⇒ IO[E, A]

    Permalink

    Given an environment R, returns a function that can supply the environment to programs that require it, removing their need for any specific environment.

    Given an environment R, returns a function that can supply the environment to programs that require it, removing their need for any specific environment.

    This is similar to dependency injection, and the provide function can be thought of as inject.

  116. def raceAll[R, R1 <: R, E, A](zio: ZIO[R, E, A], ios: Iterable[ZIO[R1, E, A]]): ZIO[R1, E, A]

    Permalink

    Races an IO[E, A] against zero or more other effects.

    Races an IO[E, A] against zero or more other effects. Yields either the first success or the last failure.

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

    Permalink

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

  118. def reduceAllPar[R, R1 <: R, E, A](a: ZIO[R, E, A], as: Iterable[ZIO[R1, E, A]])(f: (A, A) ⇒ A): ZIO[R1, E, A]

    Permalink

    Reduces an Iterable[IO] to a single IO, working in parallel.

  119. def replicate[R, E, A](n: Int)(effect: ZIO[R, E, A]): Iterable[ZIO[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 be returned. This method is more efficient than using List.fill or similar methods, because the returned Iterable consumes only a small amount of heap regardless of n.

  120. def require[R, E, A](error: ⇒ E): (ZIO[R, E, Option[A]]) ⇒ ZIO[R, E, A]

    Permalink

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

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

  121. def reserve[R, E, A, B](reservation: ZIO[R, E, Reservation[R, E, A]])(use: (A) ⇒ ZIO[R, E, B]): ZIO[R, E, B]

    Permalink

    Acquires a resource, uses the resource, and then releases the resource.

    Acquires a resource, uses the resource, and then releases the resource. However, unlike bracket, the separation of these phases allows the acquisition to be interruptible.

    Useful for concurrent data structures and other cases where the 'deallocator' can tell if the allocation succeeded or not just by inspecting internal / external state.

  122. def right[B](b: ⇒ B): UIO[Either[Nothing, B]]

    Permalink

    Returns an effect with the value on the right part.

  123. def runtime[R]: URIO[R, Runtime[R]]

    Permalink

    Returns an effect that accesses the runtime, which can be used to (unsafely) execute tasks.

    Returns an effect that accesses the runtime, which can be used to (unsafely) execute tasks. This is useful for integration with legacy code that must call back into ZIO code.

  124. def second[E, A, B]: ZIO[(A, B), E, B]

    Permalink

    Returns an effectful function that extracts out the second element of a tuple.

  125. def sleep(duration: ⇒ Duration): URIO[Clock, Unit]

    Permalink

    Returns an effect that suspends for the specified duration.

    Returns an effect that suspends for the specified duration. This method is asynchronous, and does not actually block the fiber executing the effect.

  126. def some[A](a: ⇒ A): UIO[Option[A]]

    Permalink

    Returns an effect with the optional value.

  127. def succeed[A](a: ⇒ A): UIO[A]

    Permalink

    Returns an effect that models success with the specified value.

  128. def swap[E, A, B]: ZIO[(A, B), E, (B, A)]

    Permalink

    Returns an effectful function that merely swaps the elements in a Tuple2.

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  131. def trace: UIO[ZTrace]

    Permalink

    Capture ZIO trace at the current point

  132. def traced[R, E, A](zio: ZIO[R, E, A]): ZIO[R, E, A]

    Permalink

    Prefix form of ZIO#traced.

  133. def uninterruptible[R, E, A](zio: ZIO[R, E, A]): ZIO[R, E, A]

    Permalink

    Prefix form of ZIO#uninterruptible.

  134. def uninterruptibleMask[R, E, A](k: (InterruptStatusRestore) ⇒ ZIO[R, E, A]): ZIO[R, E, A]

    Permalink

    Makes the effect uninterruptible, but passes it a restore function that can be used to restore the inherited interruptibility from whatever region the effect is composed into.

  135. val unit: UIO[Unit]

    Permalink

    An effect that succeeds with a unit value.

  136. def unsandbox[R, E, A](v: ZIO[R, Cause[E], A]): ZIO[R, E, A]

    Permalink

    The inverse operation IO.sandboxed

    The inverse operation IO.sandboxed

    Terminates with exceptions on the Left side of the Either error, if it exists. Otherwise extracts the contained IO[E, A]

  137. def untraced[R, E, A](zio: ZIO[R, E, A]): ZIO[R, E, A]

    Permalink

    Prefix form of ZIO#untraced.

  138. def validate[R, E, A, B](in: Iterable[A])(f: (A) ⇒ ZIO[R, E, B])(implicit ev: CanFail[E]): ZIO[R, ::[E], List[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.

  139. def validateFirst[R, E, A, B](in: Iterable[A])(f: (A) ⇒ ZIO[R, E, B])(implicit ev: CanFail[E]): ZIO[R, List[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.

  140. def validateFirstPar[R, E, A, B](in: Iterable[A])(f: (A) ⇒ ZIO[R, E, B])(implicit ev: CanFail[E]): ZIO[R, List[E], B]

    Permalink

    Feeds elements of type A to f, in parallel, until it succeeds.

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

    In case of success all other running fibers are terminated.

  141. def validatePar[R, E, A, B](in: Iterable[A])(f: (A) ⇒ ZIO[R, E, B])(implicit ev: CanFail[E]): ZIO[R, ::[E], List[B]]

    Permalink

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

    Feeds elements of type A to f and accumulates, in parallel, 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 partitionPar.

  142. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  145. def when[R, E](b: ⇒ Boolean)(zio: ZIO[R, E, Any]): ZIO[R, E, Unit]

    Permalink

    The moral equivalent of if (p) exp

  146. def whenCase[R, E, A](a: ⇒ A)(pf: PartialFunction[A, ZIO[R, E, Any]]): ZIO[R, E, Unit]

    Permalink

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

  147. def whenCaseM[R, E, A](a: ZIO[R, E, A])(pf: PartialFunction[A, ZIO[R, E, Any]]): ZIO[R, E, Unit]

    Permalink

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

  148. def whenM[R, E](b: ZIO[R, E, Boolean])(zio: ZIO[R, E, Any]): ZIO[R, E, Unit]

    Permalink

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

  149. val yieldNow: UIO[Unit]

    Permalink

    Returns an effect that yields to the runtime system, starting on a fresh stack.

    Returns an effect that yields to the runtime system, starting on a fresh stack. Manual use of this method can improve fairness, at the cost of overhead.

Deprecated Value Members

  1. def bracketFork[R, E, A, B](acquire: ZIO[R, E, A], release: (A) ⇒ URIO[R, Any], use: (A) ⇒ ZIO[R, E, B]): ZIO[R, E, B]

    Permalink

    Uncurried version of bracketFork.

    Uncurried version of bracketFork. Doesn't offer curried syntax and has worse type-inference characteristics, but guarantees no extra allocations of intermediate zio.ZIO.BracketForkAcquire and zio.ZIO.BracketForkRelease objects.

    Annotations
    @deprecated
    Deprecated

    (Since version 1.0.0) Use ZIO#disconnect on an ordinary bracket

  2. def bracketFork[R, E, A](acquire: ZIO[R, E, A]): BracketForkAcquire[R, E, A]

    Permalink

    A variant of bracket which returns immediately on interruption.

    A variant of bracket which returns immediately on interruption. however, it does not actually interrupt the underlying acquisition, but rather, in a separate fiber, awaits the acquisition and then gracefully and immediately releases the resource after acquisition. Thus the fiber executing bracketFork is able to be interrupted right away even if in the middle of a lengthy acquisition operation.

    Annotations
    @deprecated
    Deprecated

    (Since version 1.0.0) Use ZIO#disconnect on an ordinary bracket

  3. def bracketForkExit[R, E, A, B](acquire: ZIO[R, E, A], release: (A, Exit[E, B]) ⇒ URIO[R, Any], use: (A) ⇒ ZIO[R, E, B]): ZIO[R, E, B]

    Permalink

    Uncurried version of bracketForkExit.

    Uncurried version of bracketForkExit. Doesn't offer curried syntax and has worse type-inference characteristics, but guarantees no extra allocations of intermediate zio.ZIO.BracketForkExitAcquire and zio.ZIO.BracketForkExitRelease objects.

    Annotations
    @deprecated
    Deprecated

    (Since version 1.0.0) Use ZIO#disconnect on an ordinary bracket

  4. def bracketForkExit[R, E, A](acquire: ZIO[R, E, A]): BracketForkExitAcquire[R, E, A]

    Permalink

    A variant of bracketExit which returns immediately on interruption.

    A variant of bracketExit which returns immediately on interruption. However, it does not actually interrupt the underlying acquisition, but rather, in a separate fiber, awaits the acquisition and then gracefully and immediately releases the resource after acquisition.

    Annotations
    @deprecated
    Deprecated

    (Since version 1.0.0) Use ZIO#disconnect on an ordinary bracket

  5. def sequence[R, E, A](in: Iterable[ZIO[R, E, A]]): ZIO[R, E, List[A]]

    Permalink

    Alias for ZIO.collectAll

    Alias for ZIO.collectAll

    Annotations
    @deprecated
    Deprecated

    (Since version 1.0.0) Use ZIO.collectAll

  6. def sequencePar[R, E, A](as: Iterable[ZIO[R, E, A]]): ZIO[R, E, List[A]]

    Permalink

    Alias for ZIO.collectAllPar

    Alias for ZIO.collectAllPar

    Annotations
    @deprecated
    Deprecated

    (Since version 1.0.0) Use ZIO.collectAllPar

  7. def sequenceParN[R, E, A](n: Int)(as: Iterable[ZIO[R, E, A]]): ZIO[R, E, List[A]]

    Permalink

    Alias for ZIO.collectAllParN

    Alias for ZIO.collectAllParN

    Annotations
    @deprecated
    Deprecated

    (Since version 1.0.0) Use ZIO.collectAllParN

  8. def traverse[R, E, A, B](in: Iterable[A])(f: (A) ⇒ ZIO[R, E, B]): ZIO[R, E, List[B]]

    Permalink

    Alias for ZIO.foreach[R,E,A,B](in:Iterable*

    Annotations
    @deprecated
    Deprecated

    (Since version 1.0.0) Use ZIO.foreach

  9. def traversePar[R, E, A, B](as: Iterable[A])(fn: (A) ⇒ ZIO[R, E, B]): ZIO[R, E, List[B]]

    Permalink

    Alias for ZIO.foreachPar[R,E,A,B](as:Iterable*

    Annotations
    @deprecated
    Deprecated

    (Since version 1.0.0) Use ZIO.foreachPar

  10. def traverseParN[R, E, A, B](n: Int)(as: Iterable[A])(fn: (A) ⇒ ZIO[R, E, B]): ZIO[R, E, List[B]]

    Permalink

    Alias for ZIO.foreachParN

    Alias for ZIO.foreachParN

    Annotations
    @deprecated
    Deprecated

    (Since version 1.0.0) Use ZIO.foreachParN

  11. def traverseParN_[R, E, A](n: Int)(as: Iterable[A])(f: (A) ⇒ ZIO[R, E, Any]): ZIO[R, E, Unit]

    Permalink

    Alias for ZIO.foreachParN_

    Alias for ZIO.foreachParN_

    Annotations
    @deprecated
    Deprecated

    (Since version 1.0.0) Use ZIO.foreachParN_

  12. def traversePar_[R, E, A](as: Iterable[A])(f: (A) ⇒ ZIO[R, E, Any]): ZIO[R, E, Unit]

    Permalink

    Alias for ZIO.foreachPar_[R,E,A](as:Iterable*

    Annotations
    @deprecated
    Deprecated

    (Since version 1.0.0) Use ZIO.foreachPar_

  13. def traverse_[R, E, A](as: Iterable[A])(f: (A) ⇒ ZIO[R, E, Any]): ZIO[R, E, Unit]

    Permalink

    Alias for ZIO.foreach_[R,E,A](as:Iterable*

    Annotations
    @deprecated
    Deprecated

    (Since version 1.0.0) Use ZIO.foreach_

Inherited from Serializable

Inherited from Serializable

Inherited from ZIOCompanionPlatformSpecific

Inherited from AnyRef

Inherited from Any

Ungrouped