PublisherOps

fs2.interop.reactivestreams.package$.PublisherOps
final implicit class PublisherOps[A](val publisher: Publisher[A]) extends AnyVal

Attributes

Source
package.scala
Graph
Supertypes
class AnyVal
trait Matchable
class Any

Members list

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 parameters

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 this bufferSize to query elements in batch. A high number will also lead to more elements in memory.

Attributes

Source
package.scala

Deprecated methods

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

Attributes

Deprecated
true
Source
package.scala

Concrete fields

val publisher: Publisher[A]

Attributes

Source
package.scala