Packages

  • package root
    Definition Classes
    root
  • package izumi
    Definition Classes
    root
  • package functional
    Definition Classes
    izumi
  • package bio

    Current hierarchy (use http://www.nomnoml.com/ to render, rendered: https://izumi.7mind.io/bio/media/bio-relationship-hierarchy.svg)

    Current hierarchy (use http://www.nomnoml.com/ to render, rendered: https://izumi.7mind.io/bio/media/bio-relationship-hierarchy.svg)

    [Functor2]<--[Bifunctor2]
    [Bifunctor2]<--[ApplicativeError2]
    [Functor2]<--[Applicative2]
    [Applicative2]<--[Guarantee2]
    [Applicative2]<--[Monad2]
    [Guarantee2]<--[ApplicativeError2]
    [ApplicativeError2]<--[Error2]
    [Monad2]<--[Error2]
    [Error2]<--[Bracket2]
    [Bracket2]<--[Panic2]
    [Panic2]<--[IO2]
    [IO2]<--[Async2]
    
    [Monad2]<--[Parallel2]
    [Parallel2]<--[Concurrent2]
    [Concurrent2]<--[Async2]
    
    [Error2]<--[Temporal2]

    Auxiliary algebras:

    [cats.effect.*]<:--[CatsConversions]
    
    [Fork2]<:--[Fiber2]
    
    [BlockingIO2]
    
    [Primitives2]
    
    [Primitives2]<:--[Ref2]
    [Primitives2]<:--[Semaphore2]
    [Primitives2]<:--[Promise2]
    
    [PrimitivesM2]
    [PrimitivesM2]<:--[RefM2]
    [PrimitivesM2]<:--[Mutex2]
    
    [Entropy1]<:--[Entropy2]
    [Clock1]<:--[Clock2]
    
    [UnsafeRun2]

    Raw inheritance hierarchy:

    [Functor2]<--[Applicative2]
    [Applicative2]<--[Guarantee2]
    [Applicative2]<--[Monad2]
    [Guarantee2]<--[ApplicativeError2]
    [Bifunctor2]<--[ApplicativeError2]
    [ApplicativeError2]<--[Error2]
    [Monad2]<--[Error2]
    [Error2]<--[Bracket2]
    [Bracket2]<--[Panic2]
    [Panic2]<--[IO2]
    
    [Parallel2]<--[Concurrent2]
    [Concurrent2]<--[Async2]
    [IO2]<--[Async2]
    
    [Temporal2]

    current hierarchy roots:

    bifunctor:

    • Functor3
    • Bifunctor3
    • Parallel3
    • Temporal3

    standalone:

    • Fork3
    • BlockingIO3
    • Primitives3
    • PrimitivesM3
    Definition Classes
    functional
  • package impl
    Definition Classes
    bio
  • AsyncZio
  • BioEither
  • BioIdentity2
  • ForkZio
  • MiniBIO
  • PrimitivesFromBIOAndCats
  • PrimitivesMFromBIO
  • PrimitivesMZio
  • PrimitivesZio
  • SchedulerImpl
  • TemporalZio

object AsyncZio extends AsyncZio[Any]

Linear Supertypes
AsyncZio[Any], Async2[[+β$0$, +γ$1$]ZIO[Any, β$0$, γ$1$]], IO2[[+β$0$, +γ$1$]ZIO[Any, β$0$, γ$1$]], Panic2[[+β$0$, +γ$1$]ZIO[Any, β$0$, γ$1$]], PanicSyntax, Bracket2[[+β$0$, +γ$1$]ZIO[Any, β$0$, γ$1$]], Error2[[+β$0$, +γ$1$]ZIO[Any, β$0$, γ$1$]], ErrorAccumulatingOps2[[+β$0$, +γ$1$]ZIO[Any, β$0$, γ$1$]], Monad2[[+β$0$, +γ$1$]ZIO[Any, β$0$, γ$1$]], ApplicativeError2[[+β$0$, +γ$1$]ZIO[Any, β$0$, γ$1$]], Bifunctor2[[+β$0$, +γ$1$]ZIO[Any, β$0$, γ$1$]], Guarantee2[[+β$0$, +γ$1$]ZIO[Any, β$0$, γ$1$]], Applicative2[[+β$0$, +γ$1$]ZIO[Any, β$0$, γ$1$]], Functor2[[+β$0$, +γ$1$]ZIO[Any, β$0$, γ$1$]], Concurrent2[[+β$0$, +γ$1$]ZIO[Any, β$0$, γ$1$]], Parallel2[[+β$0$, +γ$1$]ZIO[Any, β$0$, γ$1$]], RootBifunctor[[+β$0$, +γ$1$]ZIO[Any, β$0$, γ$1$]], Root, PredefinedHelper, DivergenceHelper, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AsyncZio
  2. AsyncZio
  3. Async2
  4. IO2
  5. Panic2
  6. PanicSyntax
  7. Bracket2
  8. Error2
  9. ErrorAccumulatingOps2
  10. Monad2
  11. ApplicativeError2
  12. Bifunctor2
  13. Guarantee2
  14. Applicative2
  15. Functor2
  16. Concurrent2
  17. Parallel2
  18. RootBifunctor
  19. Root
  20. PredefinedHelper
  21. DivergenceHelper
  22. AnyRef
  23. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. final type Canceler = ZIO[Any, Nothing, Unit]
    Definition Classes
    Async2
  2. type Divergence = Nondivergent
    Definition Classes
    DivergenceHelper
  3. type IsPredefined = NotPredefined
    Definition Classes
    PredefinedHelper

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def *>[E, A, B](f: ZIO[Any, E, A], next: => ZIO[Any, E, B]): ZIO[Any, E, B]

    execute two operations in order, return result of second operation

    execute two operations in order, return result of second operation

    Definition Classes
    AsyncZioMonad2Applicative2
    Annotations
    @inline()
  4. final def <*[E, A, B](f: ZIO[Any, E, A], next: => ZIO[Any, E, B]): ZIO[Any, E, A]

    execute two operations in order, same as *>, but return result of first operation

    execute two operations in order, same as *>, but return result of first operation

    Definition Classes
    AsyncZioMonad2Applicative2
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. final def InnerF: AsyncZio.this.type
    Definition Classes
    AsyncZioAsync2ApplicativeError2Bifunctor2Concurrent2Parallel2
    Annotations
    @inline()
  7. def accumulateErrorsImpl[ColL[_], ColR[x] <: IterableOnce[x], E, E1, A, B, B1, AC](col: ColR[A])(effect: (A) => ZIO[Any, E, B], onLeft: (E) => IterableOnce[E1], init: AC, onRight: (AC, B) => AC, end: (AC) => B1)(implicit buildL: Factory[E1, ColL[E1]]): ZIO[Any, ColL[E1], B1]
    Attributes
    protected[this]
    Definition Classes
    IO2ErrorAccumulatingOps2
  8. final def apply[A](effect: => A): ZIO[Any, Throwable, A]
    Definition Classes
    IO2
    Annotations
    @inline()
  9. final def as[E, A, B](r: ZIO[Any, E, A])(v: => B): ZIO[Any, E, B]
    Definition Classes
    AsyncZioFunctor2
    Annotations
    @inline()
  10. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  11. final def async[E, A](register: ((Either[E, A]) => Unit) => Unit): ZIO[Any, E, A]
    Definition Classes
    AsyncZioAsync2
    Annotations
    @inline()
  12. final def asyncCancelable[E, A](register: ((Either[E, A]) => Unit) => Canceler): ZIO[Any, E, A]
    Definition Classes
    AsyncZioAsync2
    Annotations
    @inline()
  13. final def asyncF[E, A](register: ((Either[E, A]) => Unit) => ZIO[Any, E, Unit]): ZIO[Any, E, A]
    Definition Classes
    AsyncZioAsync2
    Annotations
    @inline()
  14. final def attempt[E, A](r: ZIO[Any, E, A]): ZIO[Any, Nothing, Either[E, A]]
    Definition Classes
    AsyncZioError2
    Annotations
    @inline()
  15. final def bimap[E, A, E2, B](r: ZIO[Any, E, A])(f: (E) => E2, g: (A) => B): ZIO[Any, E2, B]
    Definition Classes
    AsyncZioError2Bifunctor2
    Annotations
    @inline()
  16. final def bracket[E, A, B](acquire: ZIO[Any, E, A])(release: (A) => ZIO[Any, Nothing, Unit])(use: (A) => ZIO[Any, E, B]): ZIO[Any, E, B]
    Definition Classes
    AsyncZioBracket2
    Annotations
    @inline()
  17. final def bracketCase[E, A, B](acquire: ZIO[Any, E, A])(release: (A, Exit[E, B]) => ZIO[Any, Nothing, Unit])(use: (A) => ZIO[Any, E, B]): ZIO[Any, E, B]
    Definition Classes
    AsyncZioBracket2
    Annotations
    @inline()
  18. final def bracketExcept[E, A, B](acquire: (RestoreInterruption2[[+β$8$, +γ$9$]ZIO[Any, β$8$, γ$9$]]) => ZIO[Any, E, A])(release: (A, Exit[E, B]) => ZIO[Any, Nothing, Unit])(use: (A) => ZIO[Any, E, B]): ZIO[Any, E, B]

    Like bracketCase, but acquire can contain marked interruptible regions as in uninterruptibleExcept

    Like bracketCase, but acquire can contain marked interruptible regions as in uninterruptibleExcept

    Definition Classes
    AsyncZioPanic2
    Annotations
    @inline()
  19. final def bracketOnFailure[E, A, B](acquire: ZIO[Any, E, A])(cleanupOnFailure: (A, Failure[E]) => ZIO[Any, Nothing, Unit])(use: (A) => ZIO[Any, E, B]): ZIO[Any, E, B]

    Run release action only on a failure – _any failure_, INCLUDING interruption.

    Run release action only on a failure – _any failure_, INCLUDING interruption. Do not run release action if use finished successfully.

    Definition Classes
    Bracket2
  20. final def catchAll[E, A, E2](r: ZIO[Any, E, A])(f: (E) => ZIO[Any, E2, A]): ZIO[Any, E2, A]
    Definition Classes
    AsyncZioError2
    Annotations
    @inline()
  21. final def catchSome[E, A, E1 >: E](r: ZIO[Any, E, A])(f: PartialFunction[E, ZIO[Any, E1, A]]): ZIO[Any, E1, A]
    Definition Classes
    AsyncZioError2
    Annotations
    @inline()
  22. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  23. def collect[E, A, B](l: Iterable[A])(f: (A) => ZIO[Any, E, Option[B]]): ZIO[Any, E, List[B]]
    Definition Classes
    Applicative2
  24. final def collectFirst[E, A, B](l: Iterable[A])(f: (A) => ZIO[Any, E, Option[B]]): ZIO[Any, E, Option[B]]
    Definition Classes
    AsyncZioMonad2
    Annotations
    @inline()
  25. final def currentEC: ZIO[Any, Nothing, ExecutionContext]
    Definition Classes
    AsyncZioAsync2
    Annotations
    @inline()
  26. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  27. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  28. final def fail[E](v: => E): ZIO[Any, E, Nothing]
    Definition Classes
    AsyncZioApplicativeError2
    Annotations
    @inline()
  29. final def filter[E, A](l: Iterable[A])(f: (A) => ZIO[Any, E, Boolean]): ZIO[Any, E, List[A]]
    Definition Classes
    AsyncZioApplicative2
    Annotations
    @inline()
  30. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  31. final def find[E, A](l: Iterable[A])(f: (A) => ZIO[Any, E, Boolean]): ZIO[Any, E, Option[A]]
    Definition Classes
    AsyncZioMonad2
    Annotations
    @inline()
  32. final def flatMap[E, A, B](r: ZIO[Any, E, A])(f0: (A) => ZIO[Any, E, B]): ZIO[Any, E, B]
    Definition Classes
    AsyncZioMonad2
    Annotations
    @inline()
  33. def flatSequence[E, A](l: Iterable[ZIO[Any, E, Iterable[A]]]): ZIO[Any, E, List[A]]
    Definition Classes
    Applicative2
  34. def flatSequenceAccumErrors[ColR[x] <: IterableOnce[x], ColIn[x] <: IterableOnce[x], ColL[_], E, A](col: ColR[ZIO[Any, ColL[E], ColIn[A]]])(implicit buildR: Factory[A, ColR[A]], buildL: Factory[E, ColL[E]], iterL: (ColL[E]) => IterableOnce[E]): ZIO[Any, ColL[E], ColR[A]]

    flatSequence with error accumulation

    flatSequence with error accumulation

    Definition Classes
    ErrorAccumulatingOps2
  35. def flatTraverse[E, A, B](l: Iterable[A])(f: (A) => ZIO[Any, E, Iterable[B]]): ZIO[Any, E, List[B]]
    Definition Classes
    Applicative2
  36. def flatTraverseAccumErrors[ColR[x] <: IterableOnce[x], ColIn[x] <: IterableOnce[x], ColL[_], E, A, B](col: ColR[A])(f: (A) => ZIO[Any, ColL[E], ColIn[B]])(implicit buildR: Factory[B, ColR[B]], buildL: Factory[E, ColL[E]], iterL: (ColL[E]) => IterableOnce[E]): ZIO[Any, ColL[E], ColR[B]]

    flatTraverse with error accumulation

    flatTraverse with error accumulation

    Definition Classes
    ErrorAccumulatingOps2
  37. final def flatten[E, A](r: ZIO[Any, E, ZIO[Any, E, A]]): ZIO[Any, E, A]
    Definition Classes
    AsyncZioMonad2
    Annotations
    @inline()
  38. final def flip[E, A](r: ZIO[Any, E, A]): ZIO[Any, A, E]
    Definition Classes
    AsyncZioError2
    Annotations
    @inline()
  39. final def foldLeft[E, A, AC](l: Iterable[A])(z: AC)(f: (AC, A) => ZIO[Any, E, AC]): ZIO[Any, E, AC]
    Definition Classes
    AsyncZioMonad2
    Annotations
    @inline()
  40. final def forever[E, A](r: ZIO[Any, E, A]): ZIO[Any, E, Nothing]
    Definition Classes
    Applicative2
    Annotations
    @inline()
  41. final def fromEither[E, A](effect: => Either[E, A]): ZIO[Any, E, A]
    Definition Classes
    AsyncZioIO2ApplicativeError2
    Annotations
    @inline()
  42. final def fromFuture[A](mkFuture: (ExecutionContext) => Future[A]): ZIO[Any, Throwable, A]
    Definition Classes
    AsyncZioAsync2
    Annotations
    @inline()
  43. final def fromFuture[A](mkFuture: => Future[A]): ZIO[Any, Throwable, A]
    Definition Classes
    Async2
    Annotations
    @inline()
  44. final def fromFutureJava[A](javaFuture: => CompletionStage[A]): ZIO[Any, Throwable, A]
    Definition Classes
    AsyncZioAsync2
    Annotations
    @inline()
  45. final def fromOption[E, A](errorOnNone: => E)(effect: => Option[A]): ZIO[Any, E, A]
    Definition Classes
    AsyncZioIO2ApplicativeError2
    Annotations
    @inline()
  46. def fromOption[E, A](errorOnNone: => E, r: ZIO[Any, E, Option[A]]): ZIO[Any, E, A]

    Extracts the optional value or fails with the errorOnNone error

    Extracts the optional value or fails with the errorOnNone error

    Definition Classes
    Error2
  47. final def fromOptionF[E, A](fallbackOnNone: => ZIO[Any, E, A], r: ZIO[Any, E, Option[A]]): ZIO[Any, E, A]

    Extracts the optional value, or executes the fallbackOnNone effect

    Extracts the optional value, or executes the fallbackOnNone effect

    Definition Classes
    AsyncZioMonad2
    Annotations
    @inline()
  48. final def fromOptionOr[E, A](valueOnNone: => A, r: ZIO[Any, E, Option[A]]): ZIO[Any, E, A]

    Extracts the optional value, or returns the given valueOnNone value

    Extracts the optional value, or returns the given valueOnNone value

    Definition Classes
    AsyncZioFunctor2
    Annotations
    @inline()
  49. final def fromTry[A](effect: => Try[A]): ZIO[Any, Throwable, A]
    Definition Classes
    AsyncZioIO2ApplicativeError2
    Annotations
    @inline()
  50. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  51. final def guarantee[E, A](f: ZIO[Any, E, A], cleanup: ZIO[Any, Nothing, Unit]): ZIO[Any, E, A]
    Definition Classes
    AsyncZioBracket2Guarantee2
    Annotations
    @inline()
  52. final def guaranteeCase[E, A](f: ZIO[Any, E, A], cleanup: (Exit[E, A]) => ZIO[Any, Nothing, Unit]): ZIO[Any, E, A]
    Definition Classes
    AsyncZioBracket2
    Annotations
    @inline()
  53. final def guaranteeExceptOnInterrupt[E, A](f: ZIO[Any, E, A], cleanupOnNonInterruption: (Uninterrupted[E, A]) => ZIO[Any, Nothing, Unit]): ZIO[Any, E, A]

    Run cleanup on both _success_ and _failure_, if the failure IS NOT an interruption.

    Run cleanup on both _success_ and _failure_, if the failure IS NOT an interruption.

    Definition Classes
    Bracket2
  54. final def guaranteeOnFailure[E, A](f: ZIO[Any, E, A], cleanupOnFailure: (Failure[E]) => ZIO[Any, Nothing, Unit]): ZIO[Any, E, A]

    Run cleanup only on a failure – _any failure_, INCLUDING interruption.

    Run cleanup only on a failure – _any failure_, INCLUDING interruption. Do not run cleanup if use finished successfully.

    Definition Classes
    Bracket2
  55. final def guaranteeOnInterrupt[E, A](f: ZIO[Any, E, A], cleanupOnInterruption: (Interruption) => ZIO[Any, Nothing, Unit]): ZIO[Any, E, A]

    Run cleanup only on interruption.

    Run cleanup only on interruption. Do not run cleanup if use finished successfully.

    Definition Classes
    Bracket2
  56. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  57. final def ifThenElse[E, E1, A](cond: ZIO[Any, E, Boolean])(ifTrue: => ZIO[Any, E1, A], ifFalse: => ZIO[Any, E1, A])(implicit ev: <:<[E, E1]): ZIO[Any, E1, A]
    Definition Classes
    Monad2
    Annotations
    @inline()
  58. final def ifThenElse[E, A](cond: Boolean)(ifTrue: => ZIO[Any, E, A], ifFalse: => ZIO[Any, E, A]): ZIO[Any, E, A]
    Definition Classes
    Applicative2
    Annotations
    @inline()
  59. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  60. final def iterateUntil[E, A](r: ZIO[Any, E, A])(p: (A) => Boolean): ZIO[Any, E, A]

    Execute an action repeatedly until its result satisfies the given predicate and return that result, discarding all others.

    Execute an action repeatedly until its result satisfies the given predicate and return that result, discarding all others.

    Definition Classes
    AsyncZioMonad2
    Annotations
    @inline()
  61. def iterateUntilF[E, A](init: A)(f: (A) => ZIO[Any, E, A])(p: (A) => Boolean): ZIO[Any, E, A]

    Apply an effectful function iteratively until its result satisfies the given predicate and return that result.

    Apply an effectful function iteratively until its result satisfies the given predicate and return that result.

    Definition Classes
    Monad2
  62. final def iterateWhile[E, A](r: ZIO[Any, E, A])(p: (A) => Boolean): ZIO[Any, E, A]

    Execute an action repeatedly until its result fails to satisfy the given predicate and return that result, discarding all others.

    Execute an action repeatedly until its result fails to satisfy the given predicate and return that result, discarding all others.

    Definition Classes
    AsyncZioMonad2
    Annotations
    @inline()
  63. def iterateWhileF[E, A](init: A)(f: (A) => ZIO[Any, E, A])(p: (A) => Boolean): ZIO[Any, E, A]

    Apply an effectful function iteratively until its result fails to satisfy the given predicate and return that result.

    Apply an effectful function iteratively until its result fails to satisfy the given predicate and return that result.

    Definition Classes
    Monad2
  64. final def leftFlatMap[E, A, E2](r: ZIO[Any, E, A])(f: (E) => ZIO[Any, Nothing, E2]): ZIO[Any, E2, A]
    Definition Classes
    AsyncZioError2
    Annotations
    @inline()
  65. final def leftMap[E, A, E2](r: ZIO[Any, E, A])(f: (E) => E2): ZIO[Any, E2, A]
    Definition Classes
    AsyncZioBifunctor2
    Annotations
    @inline()
  66. final def leftMap2[E, A, E2, E3](firstOp: ZIO[Any, E, A], secondOp: => ZIO[Any, E2, A])(f: (E, E2) => E3): ZIO[Any, E3, A]

    map errors from two operations into a new error if both fail

    map errors from two operations into a new error if both fail

    Definition Classes
    AsyncZioError2ApplicativeError2
    Annotations
    @inline()
  67. final def map[E, A, B](r: ZIO[Any, E, A])(f: (A) => B): ZIO[Any, E, B]
    Definition Classes
    AsyncZioMonad2Functor2
    Annotations
    @inline()
  68. final def map2[E, A, B, C](r1: ZIO[Any, E, A], r2: => ZIO[Any, E, B])(f: (A, B) => C): ZIO[Any, E, C]

    execute two operations in order, map their results

    execute two operations in order, map their results

    Definition Classes
    AsyncZioMonad2Applicative2
    Annotations
    @inline()
  69. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  70. final def never: ZIO[Any, Nothing, Nothing]
    Definition Classes
    AsyncZioAsync2Concurrent2
    Annotations
    @inline()
  71. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  72. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  73. final def onEC[E, A](ec: ExecutionContext)(f: ZIO[Any, E, A]): ZIO[Any, E, A]
    Definition Classes
    AsyncZioAsync2
    Annotations
    @inline()
  74. final def orElse[E, A, E2](r: ZIO[Any, E, A], f: => ZIO[Any, E2, A]): ZIO[Any, E2, A]

    execute second operation only if the first one fails

    execute second operation only if the first one fails

    Definition Classes
    AsyncZioError2ApplicativeError2
    Annotations
    @inline()
  75. final def orTerminate[A](r: ZIO[Any, Throwable, A]): ZIO[Any, Nothing, A]
    Definition Classes
    Panic2
    Annotations
    @inline()
  76. final def parTraverse[E, A, B](l: Iterable[A])(f: (A) => ZIO[Any, E, B]): ZIO[Any, E, List[B]]
    Definition Classes
    AsyncZioParallel2
    Annotations
    @inline()
  77. final def parTraverseN[E, A, B](maxConcurrent: Int)(l: Iterable[A])(f: (A) => ZIO[Any, E, B]): ZIO[Any, E, List[B]]
    Definition Classes
    AsyncZioParallel2
    Annotations
    @inline()
  78. final def parTraverseNCore[E, A, B](l: Iterable[A])(f: (A) => ZIO[Any, E, B]): ZIO[Any, E, List[B]]

    parTraverseN with maxConcurrent set to the number of cores, or 2 when on single-core processor

    parTraverseN with maxConcurrent set to the number of cores, or 2 when on single-core processor

    Definition Classes
    AsyncZioParallel2
    Annotations
    @inline()
  79. final def parTraverseNCore_[E, A, B](l: Iterable[A])(f: (A) => ZIO[Any, E, B]): ZIO[Any, E, Unit]
    Definition Classes
    AsyncZioParallel2
    Annotations
    @inline()
  80. final def parTraverseN_[E, A, B](maxConcurrent: Int)(l: Iterable[A])(f: (A) => ZIO[Any, E, B]): ZIO[Any, E, Unit]
    Definition Classes
    AsyncZioParallel2
    Annotations
    @inline()
  81. final def parTraverse_[E, A, B](l: Iterable[A])(f: (A) => ZIO[Any, E, B]): ZIO[Any, E, Unit]
    Definition Classes
    AsyncZioParallel2
    Annotations
    @inline()
  82. def partition[E, A](l: Iterable[ZIO[Any, E, A]]): ZIO[Any, Nothing, (List[E], List[A])]
    Definition Classes
    Error2
    Annotations
    @nowarn()
  83. final def pure[A](a: A): ZIO[Any, Nothing, A]
    Definition Classes
    AsyncZioApplicative2
    Annotations
    @inline()
  84. final def race[E, A](r1: ZIO[Any, E, A], r2: ZIO[Any, E, A]): ZIO[Any, E, A]

    Race two actions, the winner is the first action to TERMINATE, whether by success or failure

    Race two actions, the winner is the first action to TERMINATE, whether by success or failure

    Definition Classes
    AsyncZioConcurrent2
    Annotations
    @inline()
  85. final def racePairUnsafe[E, A, B](r1: ZIO[Any, E, A], r2: ZIO[Any, E, B]): ZIO[Any, E, Either[(Exit[E, A], Fiber2[[+β$2$, +γ$3$]ZIO[Any, β$2$, γ$3$], E, B]), (Fiber2[[+β$4$, +γ$5$]ZIO[Any, β$4$, γ$5$], E, A], Exit[E, B])]]

    Race two actions, the winner is the first action to TERMINATE, whether by success or failure

    Race two actions, the winner is the first action to TERMINATE, whether by success or failure

    Unlike race, the loser is not interrupted after the winner has terminated - whether by success or failure.

    Definition Classes
    AsyncZioConcurrent2
    Annotations
    @inline()
  86. final def redeem[E, A, E2, B](r: ZIO[Any, E, A])(err: (E) => ZIO[Any, E2, B], succ: (A) => ZIO[Any, E2, B]): ZIO[Any, E2, B]
    Definition Classes
    AsyncZioError2
    Annotations
    @inline()
  87. final def redeemPure[E, A, B](r: ZIO[Any, E, A])(err: (E) => B, succ: (A) => B): ZIO[Any, Nothing, B]
    Definition Classes
    AsyncZioError2
    Annotations
    @inline()
  88. final def retryUntil[E, A](r: ZIO[Any, E, A])(f: (E) => Boolean): ZIO[Any, E, A]

    Retries this effect until its error satisfies the specified predicate.

    Retries this effect until its error satisfies the specified predicate.

    Definition Classes
    AsyncZioError2
    Annotations
    @inline()
  89. final def retryUntilF[E, A](r: ZIO[Any, E, A])(f: (E) => ZIO[Any, Nothing, Boolean]): ZIO[Any, E, A]

    Retries this effect until its error satisfies the specified effectful predicate.

    Retries this effect until its error satisfies the specified effectful predicate.

    Definition Classes
    AsyncZioError2
    Annotations
    @inline()
  90. final def retryWhile[E, A](r: ZIO[Any, E, A])(f: (E) => Boolean): ZIO[Any, E, A]

    Retries this effect while its error satisfies the specified predicate.

    Retries this effect while its error satisfies the specified predicate.

    Definition Classes
    AsyncZioError2
    Annotations
    @inline()
  91. final def retryWhileF[E, A](r: ZIO[Any, E, A])(f: (E) => ZIO[Any, Nothing, Boolean]): ZIO[Any, E, A]

    Retries this effect while its error satisfies the specified effectful predicate.

    Retries this effect while its error satisfies the specified effectful predicate.

    Definition Classes
    AsyncZioError2
    Annotations
    @inline()
  92. final def sandbox[E, A](r: ZIO[Any, E, A]): ZIO[Any, FailureUninterrupted[E], A]

    Definition Classes
    AsyncZioPanic2
    Annotations
    @inline()
    Note

    Will return either Exit.Success, Exit.Error or Exit.Termination. Exit.Interruption cannot be sandboxed. Use guaranteeOnInterrupt for cleanups on interruptions.

  93. final def sandboxExit[E, A](r: ZIO[Any, E, A]): ZIO[Any, Nothing, Uninterrupted[E, A]]

    Definition Classes
    Panic2
    Annotations
    @inline()
    Note

    Will return either Exit.Success, Exit.Error or Exit.Termination. Exit.Interruption cannot be sandboxed. Use guaranteeOnInterrupt for cleanups on interruptions.

  94. final def sendInterruptToSelf: ZIO[Any, Nothing, Unit]

    Signal interruption to this fiber.

    Signal interruption to this fiber.

    This is _NOT_ the same as

    F.halt(Exit.Interrupted(Trace.forUnknownError))

    The code above exits with Exit.Interrupted failure *unconditionally*, whereas sendInterruptToSelf will not exit when in an uninterruptible region. Example:

    F.uninterruptible {
      F.halt(Exit.Interrupted(Trace.forUnknownError)) *>
      F.sync(println("Hello!")) // interrupted above. Hello _not_ printed
    }

    But with sendInterruptToSelf:

    F.uninterruptible {
      F.sendInterruptToSelf *>
      F.sync(println("Hello!")) // Hello IS printed.
    } *> F.sync(println("Impossible")) // interrupted immediately after `uninterruptible` block ends. Impossible _not_ printed
    Definition Classes
    AsyncZioPanic2
    Annotations
    @inline()
    See also

  95. final def sequence[E, A](l: Iterable[ZIO[Any, E, A]]): ZIO[Any, E, List[A]]
    Definition Classes
    AsyncZioApplicative2
    Annotations
    @inline()
  96. def sequenceAccumErrors[ColR[x] <: IterableOnce[x], ColL[_], E, A](col: ColR[ZIO[Any, ColL[E], A]])(implicit buildR: Factory[A, ColR[A]], buildL: Factory[E, ColL[E]], iterL: (ColL[E]) => IterableOnce[E]): ZIO[Any, ColL[E], ColR[A]]

    sequence with error accumulation

    sequence with error accumulation

    Definition Classes
    ErrorAccumulatingOps2
  97. def sequenceAccumErrorsNEList[ColR[x] <: IterableOnce[x], E, A](col: ColR[ZIO[Any, E, A]])(implicit buildR: Factory[A, ColR[A]]): ZIO[Any, NEList[E], ColR[A]]

    sequence with error accumulation

    sequence with error accumulation

    Definition Classes
    ErrorAccumulatingOps2
  98. def sequenceAccumErrors_[ColR[x] <: IterableOnce[x], ColL[_], E, A](col: ColR[ZIO[Any, ColL[E], A]])(implicit buildL: Factory[E, ColL[E]], iterL: (ColL[E]) => IterableOnce[E]): ZIO[Any, ColL[E], Unit]

    sequence_ with error accumulation

    sequence_ with error accumulation

    Definition Classes
    ErrorAccumulatingOps2
  99. final def sequence_[E](l: Iterable[ZIO[Any, E, Unit]]): ZIO[Any, E, Unit]
    Definition Classes
    AsyncZioApplicative2
    Annotations
    @inline()
  100. final def suspend[A](effect: => ZIO[Any, Throwable, A]): ZIO[Any, Throwable, A]

    Capture a side-effectful block of code that can throw exceptions and returns another effect

    Capture a side-effectful block of code that can throw exceptions and returns another effect

    Definition Classes
    AsyncZioIO2
    Annotations
    @inline()
  101. final def suspendSafe[E, A](effect: => ZIO[Any, E, A]): ZIO[Any, E, A]

    Capture an _exception-safe_ side-effect that returns another effect

    Capture an _exception-safe_ side-effect that returns another effect

    Definition Classes
    AsyncZioIO2
    Annotations
    @inline()
  102. final def sync[A](effect: => A): ZIO[Any, Nothing, A]

    Capture an _exception-safe_ side-effect such as memory mutation or randomness

    Capture an _exception-safe_ side-effect such as memory mutation or randomness

    Definition Classes
    AsyncZioIO2
    Annotations
    @inline()
    Example:
    1. import izumi.functional.bio.F
      
      val exceptionSafeArrayAllocation: F[Nothing, Array[Byte]] = {
        F.sync(new Array(256))
      }
    Note

    If you're not completely sure that a captured block can't throw, use syncThrowable

    ,

    sync means synchronous, that is, a blocking CPU effect, as opposed to a non-blocking asynchronous effect or a long blocking I/O effect (izumi.functional.bio.BlockingIO2#syncBlocking)

  103. final def syncThrowable[A](effect: => A): ZIO[Any, Throwable, A]

    Capture a side-effectful block of code that can throw exceptions

    Capture a side-effectful block of code that can throw exceptions

    Definition Classes
    AsyncZioIO2
    Annotations
    @inline()
    Note

    sync means synchronous, that is, a blocking CPU effect, as opposed to a non-blocking asynchronous effect or a long blocking I/O effect (izumi.functional.bio.BlockingIO2#syncBlocking)

  104. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  105. def tailRecM[E, A, B](a: A)(f: (A) => ZIO[Any, E, Either[A, B]]): ZIO[Any, E, B]
    Definition Classes
    Monad2
  106. final def tap[E, A](r: ZIO[Any, E, A], f: (A) => ZIO[Any, E, Unit]): ZIO[Any, E, A]
    Definition Classes
    AsyncZioMonad2
    Annotations
    @inline()
  107. final def tapBoth[E, A, E1 >: E](r: ZIO[Any, E, A])(err: (E) => ZIO[Any, E1, Unit], succ: (A) => ZIO[Any, E1, Unit]): ZIO[Any, E1, A]
    Definition Classes
    AsyncZioError2
    Annotations
    @inline()
  108. final def tapError[E, A, E1 >: E](r: ZIO[Any, E, A])(f: (E) => ZIO[Any, E1, Unit]): ZIO[Any, E1, A]
    Definition Classes
    AsyncZioError2
    Annotations
    @inline()
  109. final def terminate(v: => Throwable): ZIO[Any, Nothing, Nothing]
    Definition Classes
    AsyncZioPanic2
    Annotations
    @inline()
  110. def toString(): String
    Definition Classes
    AnyRef → Any
  111. final def traverse[E, A, B](l: Iterable[A])(f: (A) => ZIO[Any, E, B]): ZIO[Any, E, List[B]]
    Definition Classes
    AsyncZioApplicative2
    Annotations
    @inline()
  112. final def traverse[E, A, B](o: Option[A])(f: (A) => ZIO[Any, E, B]): ZIO[Any, E, Option[B]]
    Definition Classes
    Applicative2
    Annotations
    @inline()
  113. def traverseAccumErrors[ColR[x] <: IterableOnce[x], ColL[_], E, A, B](col: ColR[A])(f: (A) => ZIO[Any, ColL[E], B])(implicit buildR: Factory[B, ColR[B]], buildL: Factory[E, ColL[E]], iterL: (ColL[E]) => IterableOnce[E]): ZIO[Any, ColL[E], ColR[B]]

    traverse with error accumulation

    traverse with error accumulation

    Definition Classes
    ErrorAccumulatingOps2
  114. def traverseAccumErrors_[ColR[x] <: IterableOnce[x], ColL[_], E, A](col: ColR[A])(f: (A) => ZIO[Any, ColL[E], Unit])(implicit buildL: Factory[E, ColL[E]], iterL: (ColL[E]) => IterableOnce[E]): ZIO[Any, ColL[E], Unit]

    traverse_ with error accumulation

    traverse_ with error accumulation

    Definition Classes
    ErrorAccumulatingOps2
  115. final def traverse_[E, A](l: Iterable[A])(f: (A) => ZIO[Any, E, Unit]): ZIO[Any, E, Unit]
    Definition Classes
    AsyncZioApplicative2
    Annotations
    @inline()
  116. final def uninterruptible[E, A](r: ZIO[Any, E, A]): ZIO[Any, E, A]
    Definition Classes
    AsyncZioPanic2
    Annotations
    @inline()
  117. final def uninterruptibleExcept[E, A](r: (RestoreInterruption2[[+β$6$, +γ$7$]ZIO[Any, β$6$, γ$7$]]) => ZIO[Any, E, A]): ZIO[Any, E, A]

    Designate the effect uninterruptible, with exception of regions in it that are specifically marked to restore previous interruptibility status using the provided RestoreInterruption function

    Designate the effect uninterruptible, with exception of regions in it that are specifically marked to restore previous interruptibility status using the provided RestoreInterruption function

    Definition Classes
    AsyncZioPanic2
    Annotations
    @inline()
    Example:
    1. F.uninterruptibleExcept {
        restoreInterruption =>
          val workLoop = {
            importantWorkThatMustNotBeInterrupted() *>
            log.info("Taking a break for a second, you can interrupt me while I wait!") *>
            restoreInterruption.apply {
              F.sleep(1.second)
               .guaranteeOnInterrupt(_ => log.info("Got interrupted!"))
            } *>
            log.info("No interruptions, going back to work!") *>
            workLoop
          }
      
          workLoop
      }
    Note

    Interruptibility status will be restored to what it was in the outer region, so if the outer region was also uninterruptible, the provided RestoreInterruption will have no effect. e.g. the expression F.uninterruptible { F.uninterruptibleExcept { restore => restore(F.sleep(1.second)) } is fully uninterruptible throughout

  118. final def unit: ZIO[Any, Nothing, Unit]
    Definition Classes
    AsyncZioApplicative2
    Annotations
    @inline()
  119. final def unless[E, E1](cond: ZIO[Any, E, Boolean])(ifFalse: => ZIO[Any, E1, Unit])(implicit ev: <:<[E, E1]): ZIO[Any, E1, Unit]
    Definition Classes
    Monad2
    Annotations
    @inline()
  120. final def unless[E](cond: Boolean)(ifFalse: => ZIO[Any, E, Unit]): ZIO[Any, E, Unit]
    Definition Classes
    Applicative2
    Annotations
    @inline()
  121. final def void[E, A](r: ZIO[Any, E, A]): ZIO[Any, E, Unit]
    Definition Classes
    AsyncZioFunctor2
    Annotations
    @inline()
  122. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  123. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  124. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  125. final def when[E, E1](cond: ZIO[Any, E, Boolean])(ifTrue: => ZIO[Any, E1, Unit])(implicit ev: <:<[E, E1]): ZIO[Any, E1, Unit]
    Definition Classes
    Monad2
    Annotations
    @inline()
  126. final def when[E](cond: Boolean)(ifTrue: => ZIO[Any, E, Unit]): ZIO[Any, E, Unit]
    Definition Classes
    Applicative2
    Annotations
    @inline()
  127. final def widen[E, A, A1](r: ZIO[Any, E, A])(implicit ev: <:<[A, A1]): ZIO[Any, E, A1]
    Definition Classes
    Functor2
    Annotations
    @inline()
  128. final def widenBoth[E, A, E1, A1](r: ZIO[Any, E, A])(implicit ev: <:<[E, E1], ev2: <:<[A, A1]): ZIO[Any, E1, A1]
    Definition Classes
    Bifunctor2
    Annotations
    @inline()
  129. final def widenError[E, A, E1](r: ZIO[Any, E, A])(implicit ev: <:<[E, E1]): ZIO[Any, E1, A]
    Definition Classes
    Bifunctor2
    Annotations
    @inline()
  130. final def withFilter[E, A](r: ZIO[Any, E, A])(predicate: (A) => Boolean)(implicit filter: WithFilter[E], pos: SourceFilePositionMaterializer): ZIO[Any, E, A]

    for-comprehensions sugar:

    for-comprehensions sugar:

    for {
      (1, 2) <- F.pure((2, 1))
    } yield ()

    Use widenError to for pattern matching with non-Throwable errors:

    val f = for {
      (1, 2) <- F.pure((2, 1)).widenError[Option[Unit]]
    } yield ()
    // f: F[Option[Unit], Unit] = F.fail(Some(())
    Definition Classes
    Error2
    Annotations
    @inline()
  131. final def yieldNow: ZIO[Any, Nothing, Unit]
    Definition Classes
    AsyncZioConcurrent2
    Annotations
    @inline()
  132. final def zipPar[E, A, B](fa: ZIO[Any, E, A], fb: ZIO[Any, E, B]): ZIO[Any, E, (A, B)]

    Returns an effect that executes both effects, in parallel, combining their results into a tuple.

    Returns an effect that executes both effects, in parallel, combining their results into a tuple. If either side fails, then the other side will be interrupted.

    Definition Classes
    AsyncZioParallel2
    Annotations
    @inline()
  133. final def zipParLeft[E, A, B](fa: ZIO[Any, E, A], fb: ZIO[Any, E, B]): ZIO[Any, E, A]

    Returns an effect that executes both effects, in parallel, the left effect result is returned.

    Returns an effect that executes both effects, in parallel, the left effect result is returned. If either side fails, then the other side will be interrupted.

    Definition Classes
    AsyncZioParallel2
    Annotations
    @inline()
  134. final def zipParRight[E, A, B](fa: ZIO[Any, E, A], fb: ZIO[Any, E, B]): ZIO[Any, E, B]

    Returns an effect that executes both effects, in parallel, the right effect result is returned.

    Returns an effect that executes both effects, in parallel, the right effect result is returned. If either side fails, then the other side will be interrupted.

    Definition Classes
    AsyncZioParallel2
    Annotations
    @inline()
  135. final def zipWithPar[E, A, B, C](fa: ZIO[Any, E, A], fb: ZIO[Any, E, B])(f: (A, B) => C): ZIO[Any, E, C]

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

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

    Definition Classes
    AsyncZioParallel2
    Annotations
    @inline()

Inherited from AsyncZio[Any]

Inherited from Async2[[+β$0$, +γ$1$]ZIO[Any, β$0$, γ$1$]]

Inherited from IO2[[+β$0$, +γ$1$]ZIO[Any, β$0$, γ$1$]]

Inherited from Panic2[[+β$0$, +γ$1$]ZIO[Any, β$0$, γ$1$]]

Inherited from PanicSyntax

Inherited from Bracket2[[+β$0$, +γ$1$]ZIO[Any, β$0$, γ$1$]]

Inherited from Error2[[+β$0$, +γ$1$]ZIO[Any, β$0$, γ$1$]]

Inherited from ErrorAccumulatingOps2[[+β$0$, +γ$1$]ZIO[Any, β$0$, γ$1$]]

Inherited from Monad2[[+β$0$, +γ$1$]ZIO[Any, β$0$, γ$1$]]

Inherited from ApplicativeError2[[+β$0$, +γ$1$]ZIO[Any, β$0$, γ$1$]]

Inherited from Bifunctor2[[+β$0$, +γ$1$]ZIO[Any, β$0$, γ$1$]]

Inherited from Guarantee2[[+β$0$, +γ$1$]ZIO[Any, β$0$, γ$1$]]

Inherited from Applicative2[[+β$0$, +γ$1$]ZIO[Any, β$0$, γ$1$]]

Inherited from Functor2[[+β$0$, +γ$1$]ZIO[Any, β$0$, γ$1$]]

Inherited from Concurrent2[[+β$0$, +γ$1$]ZIO[Any, β$0$, γ$1$]]

Inherited from Parallel2[[+β$0$, +γ$1$]ZIO[Any, β$0$, γ$1$]]

Inherited from RootBifunctor[[+β$0$, +γ$1$]ZIO[Any, β$0$, γ$1$]]

Inherited from Root

Inherited from PredefinedHelper

Inherited from DivergenceHelper

Inherited from AnyRef

Inherited from Any

Ungrouped