Packages

c

zio.interop.reactivestreams

subscriberToSink

implicit final class subscriberToSink[I] extends AnyVal

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. subscriberToSink
  2. AnyVal
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new subscriberToSink(subscriber: Subscriber[I])

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    Any
  2. final def ##: Int
    Definition Classes
    Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  6. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  7. def toString(): String
    Definition Classes
    Any
  8. def toZIOSink[E <: Throwable](implicit trace: Trace): ZIO[Scope, Nothing, ((E) => UIO[Unit], ZSink[Any, Nothing, I, I, Unit])]

    Create a Sink from a Subscriber.

    Create a Sink from a Subscriber. Errors need to be transported via the returned callback:

    val subscriber: Subscriber[Int] = ??? val stream: Stream[Any, Throwable, Int] = ??? subscriber.toZIOSink.use { case (signalError, sink) => stream.run(sink).catchAll(signalError) }

Inherited from AnyVal

Inherited from Any

Ungrouped