implicit final class sinkToSubscriber[R, E <: Throwable, A, B] extends AnyVal
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- sinkToSubscriber
- AnyVal
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new sinkToSubscriber(sink: ZSink[R, E, A, B])
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
##(): Int
- Definition Classes
- Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
toString(): String
- Definition Classes
- Any
-
def
toSubscriber[R1 <: R](qSize: Int = 16): ZManaged[R1, Throwable, (Subscriber[A], IO[Throwable, B])]
Create a
Subscriberfrom aSink.Create a
Subscriberfrom aSink. The returned IO will eventually return the result of running the subscribed stream to the sink. Consumption is started as soon as the resource is used, even if the IO is never run. Interruption propagates from theZmanagedto the stream, but not from the IO.- qSize
The size used as internal buffer. A maximum of
qSize-1As will be buffered, soqSizemust be > 1. If possible, set to a power of 2 value for best performance.