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

Abstract Value Members

  1. abstract def apply(v1: ZIO[R, Option[E], Chunk[A]]): B
    Definition Classes
    Emit → Function1

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def andThen[A](g: (B) => A): (ZIO[R, Option[E], Chunk[A]]) => A
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def chunk(as: Chunk[A])(implicit trace: Trace): B

    Emits a chunk containing the specified values.

  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  8. def compose[A](g: (A) => ZIO[R, Option[E], Chunk[A]]): (A) => B
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  9. def die(t: Throwable)(implicit trace: Trace): B

    Terminates with a cause that dies with the specified Throwable.

  10. def dieMessage(message: String)(implicit trace: Trace): B

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

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

    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(implicit trace: Trace): B

    Terminates with an end of stream signal.

  13. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  15. def fail(e: E)(implicit trace: Trace): B

    Terminates with the specified error.

  16. def fromEffect(zio: ZIO[R, E, A])(implicit trace: Trace): B

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

  17. def fromEffectChunk(zio: ZIO[R, E, Chunk[A]])(implicit trace: Trace): B

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

  18. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  19. def halt(cause: Cause[E])(implicit trace: Trace): B

    Terminates the stream with the specified cause.

  20. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  21. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  22. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  23. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  24. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  25. def single(a: A)(implicit trace: Trace): B

    Emits a chunk containing the specified value.

  26. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  27. def toString(): String
    Definition Classes
    Function1 → AnyRef → Any
  28. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  29. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  30. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

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

Inherited from AnyRef

Inherited from Any

Ungrouped