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
- All
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: Trace): B
Emits a chunk containing the specified values.
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @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: Trace): B
Terminates with a cause that dies with the specified
Throwable. -
def
dieMessage(message: String)(implicit trace: Trace): B
Terminates with a cause that dies with a
Throwablewith the specified message. -
def
done(exit: Exit[E, A])(implicit trace: Trace): B
Either emits the specified value if this
Exitis aSuccessor else terminates with the specified cause if thisExitis aFailure. -
def
end(implicit trace: Trace): B
Terminates with an end of stream signal.
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
fail(e: E)(implicit trace: Trace): B
Terminates with the specified error.
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
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.
-
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.
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
halt(cause: Cause[E])(implicit trace: Trace): 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: Trace): 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( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()