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

Concise view

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.

Attributes

subscriber

the Subscriber that will receive the elements of the stream.

Source:
package.scala

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