StreamUnicastPublisher

fs2.interop.reactivestreams.StreamUnicastPublisher
See theStreamUnicastPublisher companion object
final class StreamUnicastPublisher[F[_], A](val stream: Stream[F, A], startDispatcher: Dispatcher[F])(implicit evidence$1: Async[F]) extends Publisher[A]

Implementation of a org.reactivestreams.Publisher

This is used to publish elements from a Stream to a downstream reactive-streams system.

Attributes

See also
Note

Not longer unicast, this Publisher can be reused for multiple Subscribers: each subscription will re-run the Stream from the beginning. However, a parallel Dispatcher is required to allow concurrent subscriptions. Please, refer to the apply factory in the companion object that only requires a stream.

Companion
object
Source
StreamUnicastPublisher.scala
Graph
Supertypes
trait Publisher[A]
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def subscribe(subscriber: Subscriber[_ >: A]): Unit

Attributes

Source
StreamUnicastPublisher.scala

Concrete fields

val stream: Stream[F, A]

Attributes

Source
StreamUnicastPublisher.scala