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.
- Alphabetic
- By Inheritance
- Emit
- Function1
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def andThen[A](g: (B) => A): (ZIO[R, Option[E], Chunk[A]]) => A
- Definition Classes
- Function1
- Annotations
- @unspecialized()
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def chunk(as: Chunk[A])(implicit trace: ZTraceElement): B
Emits a chunk containing the specified values.
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def compose[A](g: (A) => ZIO[R, Option[E], Chunk[A]]): (A) => B
- Definition Classes
- Function1
- Annotations
- @unspecialized()
- def die(t: Throwable)(implicit trace: ZTraceElement): B
Terminates with a cause that dies with the specified
Throwable. - def dieMessage(message: String)(implicit trace: ZTraceElement): B
Terminates with a cause that dies with a
Throwablewith the specified message. - def done(exit: Exit[E, A])(implicit trace: ZTraceElement): B
Either emits the specified value if this
Exitis aSuccessor else terminates with the specified cause if thisExitis aFailure. - def end(implicit trace: ZTraceElement): B
Terminates with an end of stream signal.
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def fail(e: E)(implicit trace: ZTraceElement): B
Terminates with the specified error.
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def fromZIO(zio: ZIO[R, E, A])(implicit trace: ZTraceElement): B
Either emits the success value of this effect or terminates the stream with the failure value of this effect.
- def fromZIOChunk(zio: ZIO[R, E, Chunk[A]])(implicit trace: ZTraceElement): B
Either emits the success value of this effect or terminates the stream with the failure value of this effect.
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def halt(cause: Cause[E])(implicit trace: ZTraceElement): B
Terminates the stream with the specified cause.
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def single(a: A)(implicit trace: ZTraceElement): B
Emits a chunk containing the specified value.
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- Function1 → AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
Deprecated Value Members
- def fromEffect(zio: ZIO[R, E, A])(implicit trace: ZTraceElement): B
Either emits the success value of this effect or terminates the stream with the failure value of this effect.
Either emits the success value of this effect or terminates the stream with the failure value of this effect.
- Annotations
- @deprecated
- Deprecated
(Since version 2.0.0) use fromZIOChunk
- def fromEffectChunk(zio: ZIO[R, E, Chunk[A]])(implicit trace: ZTraceElement): B
Either emits the success value of this effect or terminates the stream with the failure value of this effect.
Either emits the success value of this effect or terminates the stream with the failure value of this effect.
- Annotations
- @deprecated
- Deprecated
(Since version 2.0.0) use fromZIOChunk