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. val exit: Exit[Option[E], Chunk[A]]
  6. 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.

  7. 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.

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

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

  10. def isFailure: Boolean

    Checks if this take is a failure.

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

    Checks if this take is a success.

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

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

  14. def productElementNames: Iterator[String]
    Definition Classes
    Product
  15. 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.

Deprecated Value Members

  1. def done[R](implicit trace: Trace): ZIO[R, Option[E], Chunk[A]]

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

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

    Annotations
    @deprecated
    Deprecated

    (Since version 2.1.14) use exit instead

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyVal

Inherited from Any

Ungrouped