implicit final class PublisherOps[A] extends AnyVal
- Source
- package.scala
- Alphabetic
- By Inheritance
- PublisherOps
- AnyVal
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new PublisherOps(publisher: Publisher[A])
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
- val publisher: Publisher[A]
- def toStreamBuffered[F[_]](bufferSize: Int)(implicit arg0: Async[F]): Stream[F, A]
Creates a lazy stream from an
org.reactivestreams.Publisher
Creates a lazy stream from an
org.reactivestreams.Publisher
- bufferSize
setup the number of elements asked each time from the
org.reactivestreams.Publisher
. A high number can be useful if the publisher is triggering from IO, like requesting elements from a database. The publisher can use thisbufferSize
to query elements in batch. A high number will also lead to more elements in memory.
- def toString(): String
- Definition Classes
- Any
Deprecated Value Members
- def toStream[F[_]](implicit arg0: Async[F]): Stream[F, A]
Creates a lazy stream from an
org.reactivestreams.Publisher
Creates a lazy stream from an
org.reactivestreams.Publisher
- Annotations
- @deprecated
- Deprecated
(Since version 3.1.4) Use toStreamBuffered method instead. Use a buffer size of 1 to keep the same behavior.