c

zio.ZIO

ZIOWithFilterOps

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

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ZIOWithFilterOps
  2. AnyVal
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ZIOWithFilterOps(self: ZIO[R, E, A])

Value Members

  1. def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  2. def withFilter(predicate: (A) ⇒ Boolean)(implicit ev: <:<[NoSuchElementException, E]): ZIO[R, E, A]

    Enables to check conditions in the value produced by ZIO If the condition is not satisfied, it fails with NoSuchElementException this provide the syntax sugar in for-comprehension: for { (i, j) <- io1 positive <- io2 if positive > 0 } yield ()