Trait

zio.stream.ZStream

Emit

Related Doc: package ZStream

Permalink

trait Emit[+R, -E, -A, +B] extends (ZIO[R, Option[E], Chunk[A]]) ⇒ B

An Emit[R, E, A, B] represents an asynchronous callback that can be called multiple times. The callback can be called with a value of type ZIO[R, Option[E], Chunk[A]], where succeeding with a Chunk[A] indicates to emit those elements, failing with Some[E] indicates to terminate with that error, and failing with None indicates to terminate with an end of stream signal.

Linear Supertypes
(ZIO[R, Option[E], Chunk[A]]) ⇒ B, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Emit
  2. Function1
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def apply(v1: ZIO[R, Option[E], Chunk[A]]): B

    Permalink
    Definition Classes
    Emit → Function1

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. def andThen[A](g: (B) ⇒ A): (ZIO[R, Option[E], Chunk[A]]) ⇒ A

    Permalink
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def chunk(as: Chunk[A]): B

    Permalink

    Emits a chunk containing the specified values.

  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def compose[A](g: (A) ⇒ ZIO[R, Option[E], Chunk[A]]): (A) ⇒ B

    Permalink
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  9. def die(t: Throwable): B

    Permalink

    Terminates with a cause that dies with the specified Throwable.

  10. def dieMessage(message: String): B

    Permalink

    Terminates with a cause that dies with a Throwable with the specified message.

  11. def done(exit: Exit[E, A]): B

    Permalink

    Either emits the specified value if this Exit is a Success or else terminates with the specified cause if this Exit is a Failure.

  12. def end: B

    Permalink

    Terminates with an end of stream signal.

  13. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  15. def fail(e: E): B

    Permalink

    Terminates with the specified error.

  16. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. def fromEffect(zio: ZIO[R, E, A]): B

    Permalink

    Either emits the success value of this effect or terminates the stream with the failure value of this effect.

  18. def fromEffectChunk(zio: ZIO[R, E, Chunk[A]]): B

    Permalink

    Either emits the success value of this effect or terminates the stream with the failure value of this effect.

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

    Permalink
    Definition Classes
    AnyRef → Any
  20. def halt(cause: Cause[E]): B

    Permalink

    Terminates the stream with the specified cause.

  21. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  22. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  23. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  26. def single(a: A): B

    Permalink

    Emits a chunk containing the specified value.

  27. final def synchronized[T0](arg0: ⇒ T0): T0

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from (ZIO[R, Option[E], Chunk[A]]) ⇒ B

Inherited from AnyRef

Inherited from Any

Ungrouped