Trait/Object

zio.stream

Take

Related Docs: object Take | package stream

Permalink

sealed trait Take[+E, +A] extends 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 element value A or an end-of-stream marker.

Self Type
Take[E, A]
Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Take
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def canEqual(that: Any): Boolean

    Permalink
    Definition Classes
    Equals
  2. abstract def productArity: Int

    Permalink
    Definition Classes
    Product
  3. abstract def productElement(n: Int): Any

    Permalink
    Definition Classes
    Product

Concrete Value Members

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

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

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

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

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. final def flatMap[E1 >: E, B](f: (A) ⇒ Take[E1, B]): Take[E1, B]

    Permalink

    Creates a take with element value B obtained by transforming value of type A by applying function f.

    Creates a take with element value B obtained by transforming value of type A by applying function f. If take is a failure Take.Fail or an end-of-stream marker Take.End original take instance is returned.

  10. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  11. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  12. final def isFailure: Boolean

    Permalink

    Checks if this take is a failure (Take.Fail).

  13. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  14. final def map[B](f: (A) ⇒ B): Take[E, B]

    Permalink

    Transforms Take[E, A] to Take[E, B] by applying function f to an element value if take is not failure or end-of-stream marker.

  15. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  16. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  17. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  18. def productIterator: Iterator[Any]

    Permalink
    Definition Classes
    Product
  19. def productPrefix: String

    Permalink
    Definition Classes
    Product
  20. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  21. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  22. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def zip[E1 >: E, B](that: Take[E1, B]): Take[E1, (A, B)]

    Permalink

    Zips this take and the specified one together, producing a take with tuple of their values.

  26. final def zipWith[E1 >: E, B, C](that: Take[E1, B])(f: (A, B) ⇒ C): Take[E1, C]

    Permalink

    Zips this take and the specified one together, producing take with a value C by applying provided function f to values from both takes.

    Zips this take and the specified one together, producing take with a value C by applying provided function f to values from both takes. In case both takes are Take.Fail, take with combined cause will be produced. Otherwise, if one of this or that take is Take.Fail or Take.End that one will be returned.

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped