StreamOps

fs2.interop.reactivestreams.`package`.StreamOps
final implicit class StreamOps[F[_], A](val stream: Stream[F, A])

Attributes

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

Members list

Value members

Concrete methods

def subscribe(subscriber: Subscriber[A])(implicit F: Async[F]): F[Unit]

Subscribes the provided org.reactivestreams.Subscriber to this stream.

Subscribes the provided org.reactivestreams.Subscriber to this stream.

Value parameters

subscriber

the Subscriber that will receive the elements of the stream.

Attributes

Source
package.scala
def toUnicastPublisher(implicit F: Async[F]): Resource[F, StreamUnicastPublisher[F, A]]

Creates a StreamUnicastPublisher from a Stream.

Creates a StreamUnicastPublisher from a Stream.

The stream is only ran when elements are requested.

Attributes

Note

Not longer unicast, this Publisher can be reused for multiple Subscribers: each subscription will re-run the Stream from the beginning.

Source
package.scala

Concrete fields

val stream: Stream[F, A]

Attributes

Source
package.scala