PublisherOps

final implicit
class PublisherOps[A](val publisher: Publisher[A]) extends AnyVal
class AnyVal
trait Matchable
class Any

Value members

Concrete methods

def toStreamBuffered[F[_] : Async](bufferSize: Int): Stream[F, A]

Creates a lazy stream from an org.reactivestreams.Publisher

Creates a lazy stream from an org.reactivestreams.Publisher

Value Params
bufferSize

setup the number of elements asked each time from the org.reactivestreams.Publisher. A high number can be useful is the publisher is triggering from IO, like requesting elements from a database. The publisher can use this bufferSize to query elements in batch. A high number will also lead to more elements in memory.

Deprecated methods

@deprecated("Use toStreamBuffered method instead. Use a buffer size of 1 to keep the same behavior.", "3.1.4")
def toStream[F[_] : Async]: Stream[F, A]

Creates a lazy stream from an org.reactivestreams.Publisher

Creates a lazy stream from an org.reactivestreams.Publisher

Deprecated

Concrete fields

val publisher: Publisher[A]