Class/Object

zio.stream

Take

Related Docs: object Take | package stream

Permalink

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

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def done[R](implicit trace: Trace): ZIO[R, Option[E], Chunk[A]]

    Permalink

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

  6. val exit: Exit[Option[E], Chunk[A]]

    Permalink
  7. def fold[Z](end: ⇒ Z, error: (Cause[E]) ⇒ Z, value: (Chunk[A]) ⇒ Z): Z

    Permalink

    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]

    Permalink

    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]

    Permalink
    Definition Classes
    AnyVal → Any
  10. def isDone: Boolean

    Permalink

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

  11. def isFailure: Boolean

    Permalink

    Checks if this take is a failure.

  12. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  13. def isSuccess: Boolean

    Permalink

    Checks if this take is a success.

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

    Permalink

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

  15. def tap[R, E1](f: (Chunk[A]) ⇒ ZIO[R, E1, Any])(implicit trace: Trace): ZIO[R, E1, Unit]

    Permalink

    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