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.

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

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](implicit trace: Trace): 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 foldZIO[R, E1, Z](end: => ZIO[R, E1, Z], error: (Cause[E]) => ZIO[R, E1, Z], value: (Chunk[A]) => ZIO[R, E1, Z])(implicit trace: Trace): 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. def isFailure: Boolean

    Checks if this take is a failure.

  12. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  13. def isSuccess: Boolean

    Checks if this take is a success.

  14. def map[B](f: (A) => B): Take[E, B]

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

  15. def productElementNames: Iterator[String]
    Definition Classes
    Product
  16. def tap[R, E1](f: (Chunk[A]) => ZIO[R, E1, Any])(implicit trace: Trace): ZIO[R, E1, Unit]

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

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyVal

Inherited from Any

Ungrouped