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 theapply
factory in the companion object that only requires a stream.- Companion:
- object
- Source:
- StreamUnicastPublisher.scala
- Graph
- Supertypes
- trait Publisher[A]class Objecttrait Matchableclass Any