Packages

final case class Take[+E, +A](exit: Exit[Option[E], Chunk[A]]) extends AnyVal with Product with Serializable

A Take[E, A] represents a single take from a queue modeling a stream of values. A Take may be a failure cause Cause[E], an chunk value A or an end-of-stream marker.

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Take
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyVal
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Take(exit: Exit[Option[E], Chunk[A]])

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    Any
  2. final def ##(): Int
    Definition Classes
    Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def done[R]: ZIO[R, Option[E], Chunk[A]]

    Transforms Take[E, A] to ZIO[R, E, B].

  6. val exit: Exit[Option[E], Chunk[A]]
  7. def fold[Z](end: ⇒ Z, error: (Cause[E]) ⇒ Z, value: (Chunk[A]) ⇒ Z): Z

    Folds over the failure cause, success value and end-of-stream marker to yield a value.

  8. def foldM[R, E1, Z](end: ⇒ ZIO[R, E1, Z], error: (Cause[E]) ⇒ ZIO[R, E1, Z], value: (Chunk[A]) ⇒ ZIO[R, E1, Z]): ZIO[R, E1, Z]

    Effectful version of Take#fold.

    Effectful version of Take#fold.

    Folds over the failure cause, success value and end-of-stream marker to yield an effect.

  9. def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  10. def isDone: Boolean

    Checks if this take is done (Take.end).

  11. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  12. def map[B](f: (A) ⇒ B): Take[E, B]

    Transforms Take[E, A] to Take[E, B] by applying function f.

  13. def tap[R, E1](f: (Chunk[A]) ⇒ ZIO[R, E1, Any]): ZIO[R, E1, Unit]

    Returns an effect that effectfully "peeks" at the success of this take.

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyVal

Inherited from Any

Ungrouped