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
  • PrimitivesLocalFromCatsIO
  • PrimitivesLocalZio
  • PrimitivesMFromBIO
  • PrimitivesMZio
  • PrimitivesZio
  • SchedulerImpl
  • TemporalZio

class BioEither extends Error2[Either]

Linear Supertypes
Error2[Either], ErrorAccumulatingOps2[Either], Monad2[Either], ApplicativeError2[Either], Bifunctor2[Either], Guarantee2[Either], Applicative2[Either], Functor2[Either], RootBifunctor[Either], Root, PredefinedHelper, DivergenceHelper, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. BioEither
  2. Error2
  3. ErrorAccumulatingOps2
  4. Monad2
  5. ApplicativeError2
  6. Bifunctor2
  7. Guarantee2
  8. Applicative2
  9. Functor2
  10. RootBifunctor
  11. Root
  12. PredefinedHelper
  13. DivergenceHelper
  14. AnyRef
  15. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new BioEither()

Type Members

  1. type Divergence = Nondivergent
    Definition Classes
    DivergenceHelper
  2. 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. def *>[E, A, B](f: Either[E, A], next: => Either[E, B]): Either[E, B]

    execute two operations in order, return result of second operation

    execute two operations in order, return result of second operation

    Definition Classes
    Monad2Applicative2
  4. def <*[E, A, B](f: Either[E, A], next: => Either[E, B]): Either[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
    Monad2Applicative2
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. def InnerF: Functor2[Either]
    Definition Classes
    ApplicativeError2Bifunctor2
  7. def accumulateErrorsImpl[ColL[_], ColR[x] <: IterableOnce[x], E, E1, A, B, B1, AC](col: ColR[A])(effect: (A) => Either[E, B], onLeft: (E) => IterableOnce[E1], init: AC, onRight: (AC, B) => AC, end: (AC) => B1)(implicit buildL: Factory[E1, ColL[E1]]): Either[ColL[E1], B1]
    Attributes
    protected
    Definition Classes
    BioEitherErrorAccumulatingOps2
  8. def as[E, A, B](r: Either[E, A])(v: => B): Either[E, B]
    Definition Classes
    Functor2
  9. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  10. def attempt[E, A](r: Either[E, A]): Either[Nothing, Either[E, A]]
    Definition Classes
    Error2
  11. def bimap[E, A, E2, B](r: Either[E, A])(f: (E) => E2, g: (A) => B): Either[E2, B]
    Definition Classes
    Error2Bifunctor2
  12. final def catchAll[E, A, E2](r: Either[E, A])(f: (E) => Either[E2, A]): Either[E2, A]
    Definition Classes
    BioEitherError2
    Annotations
    @inline()
  13. def catchSome[E, A, E1 >: E](r: Either[E, A])(f: PartialFunction[E, Either[E1, A]]): Either[E1, A]
    Definition Classes
    Error2
  14. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  15. def collect[E, A, B](l: Iterable[A])(f: (A) => Either[E, Option[B]]): Either[E, List[B]]
    Definition Classes
    Applicative2
  16. def collectFirst[E, A, B](l: Iterable[A])(f: (A) => Either[E, Option[B]]): Either[E, Option[B]]
    Definition Classes
    BioEitherMonad2
  17. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  19. final def fail[E](v: => E): Either[E, Nothing]
    Definition Classes
    BioEitherApplicativeError2
    Annotations
    @inline()
  20. def filter[E, A](l: Iterable[A])(f: (A) => Either[E, Boolean]): Either[E, List[A]]
    Definition Classes
    Applicative2
  21. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  22. def find[E, A](l: Iterable[A])(f: (A) => Either[E, Boolean]): Either[E, Option[A]]
    Definition Classes
    BioEitherMonad2
  23. final def flatMap[E, A, B](r: Either[E, A])(f: (A) => Either[E, B]): Either[E, B]
    Definition Classes
    BioEitherMonad2
    Annotations
    @inline()
  24. def flatSequence[E, A](l: Iterable[Either[E, Iterable[A]]]): Either[E, List[A]]
    Definition Classes
    Applicative2
  25. def flatSequenceAccumErrors[ColR[x] <: IterableOnce[x], ColIn[x] <: IterableOnce[x], ColL[_], E, A](col: ColR[Either[ColL[E], ColIn[A]]])(implicit buildR: Factory[A, ColR[A]], buildL: Factory[E, ColL[E]], iterL: (ColL[E]) => IterableOnce[E]): Either[ColL[E], ColR[A]]

    flatSequence with error accumulation

    flatSequence with error accumulation

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

    flatTraverse with error accumulation

    flatTraverse with error accumulation

    Definition Classes
    ErrorAccumulatingOps2
  28. def flatten[E, A](r: Either[E, Either[E, A]]): Either[E, A]
    Definition Classes
    Monad2
  29. def flip[E, A](r: Either[E, A]): Either[A, E]
    Definition Classes
    Error2
  30. def foldLeft[E, A, AC](col: Iterable[A])(z: AC)(op: (AC, A) => Either[E, AC]): Either[E, AC]
    Definition Classes
    BioEitherMonad2
  31. final def forever[E, A](r: Either[E, A]): Either[E, Nothing]
    Definition Classes
    Applicative2
    Annotations
    @inline()
  32. final def fromEither[E, V](effect: => Either[E, V]): Either[E, V]
    Definition Classes
    BioEitherApplicativeError2
    Annotations
    @inline()
  33. final def fromOption[E, A](errorOnNone: => E)(effect: => Option[A]): Either[E, A]
    Definition Classes
    BioEitherApplicativeError2
    Annotations
    @inline()
  34. def fromOption[E, A](errorOnNone: => E, r: Either[E, Option[A]]): Either[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
  35. def fromOptionF[E, A](fallbackOnNone: => Either[E, A], r: Either[E, Option[A]]): Either[E, A]

    Extracts the optional value, or executes the fallbackOnNone effect

    Extracts the optional value, or executes the fallbackOnNone effect

    Definition Classes
    Monad2
  36. def fromOptionOr[E, A](valueOnNone: => A, r: Either[E, Option[A]]): Either[E, A]

    Extracts the optional value, or returns the given valueOnNone value

    Extracts the optional value, or returns the given valueOnNone value

    Definition Classes
    Functor2
  37. final def fromTry[A](effect: => Try[A]): Either[Throwable, A]
    Definition Classes
    BioEitherApplicativeError2
    Annotations
    @inline()
  38. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  39. final def guarantee[E, A](f: Either[E, A], cleanup: Either[Nothing, Unit]): Either[E, A]
    Definition Classes
    BioEitherGuarantee2
    Annotations
    @inline()
  40. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  41. final def ifThenElse[E, E1, A](cond: Either[E, Boolean])(ifTrue: => Either[E1, A], ifFalse: => Either[E1, A])(implicit ev: <:<[E, E1]): Either[E1, A]
    Definition Classes
    Monad2
    Annotations
    @inline()
  42. final def ifThenElse[E, A](cond: Boolean)(ifTrue: => Either[E, A], ifFalse: => Either[E, A]): Either[E, A]
    Definition Classes
    Applicative2
    Annotations
    @inline()
  43. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  44. def iterateUntil[E, A](r: Either[E, A])(p: (A) => Boolean): Either[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
    Monad2
  45. def iterateUntilF[E, A](init: A)(f: (A) => Either[E, A])(p: (A) => Boolean): Either[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
  46. def iterateWhile[E, A](r: Either[E, A])(p: (A) => Boolean): Either[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
    Monad2
  47. def iterateWhileF[E, A](init: A)(f: (A) => Either[E, A])(p: (A) => Boolean): Either[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
  48. def leftFlatMap[E, A, E2](r: Either[E, A])(f: (E) => Either[Nothing, E2]): Either[E2, A]
    Definition Classes
    Error2
  49. def leftMap[E, A, E2](r: Either[E, A])(f: (E) => E2): Either[E2, A]
    Definition Classes
    Bifunctor2
  50. def leftMap2[E, A, E2, E3](firstOp: Either[E, A], secondOp: => Either[E2, A])(f: (E, E2) => E3): Either[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
    Error2ApplicativeError2
  51. final def map[E, A, B](r: Either[E, A])(f: (A) => B): Either[E, B]
    Definition Classes
    BioEitherMonad2Functor2
    Annotations
    @inline()
  52. final def map2[E, A, B, C](firstOp: Either[E, A], secondOp: => Either[E, B])(f: (A, B) => C): Either[E, C]

    execute two operations in order, map their results

    execute two operations in order, map their results

    Definition Classes
    BioEitherMonad2Applicative2
    Annotations
    @inline()
  53. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  54. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  55. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  56. def orElse[E, A, E2](r: Either[E, A], f: => Either[E2, A]): Either[E2, A]

    execute second operation only if the first one fails

    execute second operation only if the first one fails

    Definition Classes
    Error2ApplicativeError2
  57. def partition[E, A](l: Iterable[Either[E, A]]): Right[Nothing, (List[E], List[A])]
    Definition Classes
    BioEitherError2
  58. final def pure[A](a: A): Either[Nothing, A]
    Definition Classes
    BioEitherApplicative2
    Annotations
    @inline()
  59. def redeem[E, A, E2, B](r: Either[E, A])(err: (E) => Either[E2, B], succ: (A) => Either[E2, B]): Either[E2, B]
    Definition Classes
    Error2
  60. def redeemPure[E, A, B](r: Either[E, A])(err: (E) => B, succ: (A) => B): Either[Nothing, B]
    Definition Classes
    Error2
  61. def retryUntil[E, A](r: Either[E, A])(f: (E) => Boolean): Either[E, A]

    Retries this effect until its error satisfies the specified predicate.

    Retries this effect until its error satisfies the specified predicate.

    Definition Classes
    Error2
  62. def retryUntilF[E, A](r: Either[E, A])(f: (E) => Either[Nothing, Boolean]): Either[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
    Error2
  63. def retryWhile[E, A](r: Either[E, A])(f: (E) => Boolean): Either[E, A]

    Retries this effect while its error satisfies the specified predicate.

    Retries this effect while its error satisfies the specified predicate.

    Definition Classes
    Error2
  64. def retryWhileF[E, A](r: Either[E, A])(f: (E) => Either[Nothing, Boolean]): Either[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
    Error2
  65. def sequence[E, A](l: Iterable[Either[E, A]]): Either[E, List[A]]
    Definition Classes
    Applicative2
  66. def sequenceAccumErrors[ColR[x] <: IterableOnce[x], ColL[_], E, A](col: ColR[Either[ColL[E], A]])(implicit buildR: Factory[A, ColR[A]], buildL: Factory[E, ColL[E]], iterL: (ColL[E]) => IterableOnce[E]): Either[ColL[E], ColR[A]]

    sequence with error accumulation

    sequence with error accumulation

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

    sequence with error accumulation

    sequence with error accumulation

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

    sequence_ with error accumulation

    sequence_ with error accumulation

    Definition Classes
    ErrorAccumulatingOps2
  69. def sequence_[E](l: Iterable[Either[E, Unit]]): Either[E, Unit]
    Definition Classes
    Applicative2
  70. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  71. def tailRecM[E, A, B](a: A)(f: (A) => Either[E, Either[A, B]]): Either[E, B]
    Definition Classes
    Monad2
  72. def tap[E, A](r: Either[E, A], f: (A) => Either[E, Unit]): Either[E, A]
    Definition Classes
    Monad2
  73. def tapBoth[E, A, E1 >: E](r: Either[E, A])(err: (E) => Either[E1, Unit], succ: (A) => Either[E1, Unit]): Either[E1, A]
    Definition Classes
    Error2
  74. def tapError[E, A, E1 >: E](r: Either[E, A])(f: (E) => Either[E1, Unit]): Either[E1, A]
    Definition Classes
    Error2
  75. def toString(): String
    Definition Classes
    AnyRef → Any
  76. def traverse[E, A, B](l: Iterable[A])(f: (A) => Either[E, B]): Either[E, List[B]]
    Definition Classes
    BioEitherApplicative2
  77. final def traverse[E, A, B](o: Option[A])(f: (A) => Either[E, B]): Either[E, Option[B]]
    Definition Classes
    Applicative2
    Annotations
    @inline()
  78. def traverseAccumErrors[ColR[x] <: IterableOnce[x], ColL[_], E, A, B](col: ColR[A])(f: (A) => Either[ColL[E], B])(implicit buildR: Factory[B, ColR[B]], buildL: Factory[E, ColL[E]], iterL: (ColL[E]) => IterableOnce[E]): Either[ColL[E], ColR[B]]

    traverse with error accumulation

    traverse with error accumulation

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

    traverse_ with error accumulation

    traverse_ with error accumulation

    Definition Classes
    ErrorAccumulatingOps2
  80. def traverse_[E, A](l: Iterable[A])(f: (A) => Either[E, Unit]): Either[E, Unit]
    Definition Classes
    Applicative2
  81. def unit: Either[Nothing, Unit]
    Definition Classes
    Applicative2
  82. final def unless[E, E1](cond: Either[E, Boolean])(ifFalse: => Either[E1, Unit])(implicit ev: <:<[E, E1]): Either[E1, Unit]
    Definition Classes
    Monad2
    Annotations
    @inline()
  83. final def unless[E](cond: Boolean)(ifFalse: => Either[E, Unit]): Either[E, Unit]
    Definition Classes
    Applicative2
    Annotations
    @inline()
  84. def void[E, A](r: Either[E, A]): Either[E, Unit]
    Definition Classes
    Functor2
  85. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  86. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  87. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  88. final def when[E, E1](cond: Either[E, Boolean])(ifTrue: => Either[E1, Unit])(implicit ev: <:<[E, E1]): Either[E1, Unit]
    Definition Classes
    Monad2
    Annotations
    @inline()
  89. final def when[E](cond: Boolean)(ifTrue: => Either[E, Unit]): Either[E, Unit]
    Definition Classes
    Applicative2
    Annotations
    @inline()
  90. final def widen[E, A, A1](r: Either[E, A])(implicit ev: <:<[A, A1]): Either[E, A1]
    Definition Classes
    Functor2
    Annotations
    @inline()
  91. final def widenBoth[E, A, E1, A1](r: Either[E, A])(implicit ev: <:<[E, E1], ev2: <:<[A, A1]): Either[E1, A1]
    Definition Classes
    Bifunctor2
    Annotations
    @inline()
  92. final def widenError[E, A, E1](r: Either[E, A])(implicit ev: <:<[E, E1]): Either[E1, A]
    Definition Classes
    Bifunctor2
    Annotations
    @inline()
  93. final def withFilter[E, A](r: Either[E, A])(predicate: (A) => Boolean)(implicit filter: WithFilter[E], pos: SourceFilePositionMaterializer): Either[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()

Inherited from Error2[Either]

Inherited from ErrorAccumulatingOps2[Either]

Inherited from Monad2[Either]

Inherited from ApplicativeError2[Either]

Inherited from Bifunctor2[Either]

Inherited from Guarantee2[Either]

Inherited from Applicative2[Either]

Inherited from Functor2[Either]

Inherited from RootBifunctor[Either]

Inherited from Root

Inherited from PredefinedHelper

Inherited from DivergenceHelper

Inherited from AnyRef

Inherited from Any

Ungrouped