StreamIOOps

fs2.interop.flow.syntax.StreamIOOps
final implicit class StreamIOOps[A](stream: Stream[IO, A]) extends AnyVal

Attributes

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

Members list

Value members

Concrete methods

def unsafeToPublisher()(implicit runtime: IORuntime): Publisher[A]

Creates a Publisher from a Stream.

Creates a Publisher from a Stream.

The stream is only ran when elements are requested.

Attributes

See also

toPublisher for a safe version that returns a Resource.

Note

This Publisher can be reused for multiple Subscribers, each Subscription will re-run the Stream from the beginning.

Source
syntax.scala