IOOps

fs2.Stream.IOOps
final implicit class IOOps[A](self: Stream[IO, A]) extends AnyVal

Provides syntax for IO streams.

Attributes

Source
Stream.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 this Stream.

Creates a Publisher from this Stream.

The stream is only ran when elements are requested.

Attributes

See also

toPublisher for a safe version that returns a Stream.

Note

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

Source
Stream.scala