KorolevStreamsOps

korolev.akka.instances$.KorolevStreamsOps
final implicit class KorolevStreamsOps[F[_], T](stream: Stream[F, T])(implicit evidence$1: Effect[F])

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

def asAkkaSource(implicit ec: ExecutionContext): Source[T, NotUsed]
def asPublisher(fanout: Boolean)(implicit ec: ExecutionContext): Publisher[T]

Converts korolev korolev.effect.Stream to Publisher.

Converts korolev korolev.effect.Stream to Publisher.

If fanout is true, the Publisher will support multiple Subscribers and the size of the inputBuffer configured for this operator becomes the maximum number of elements that the fastest org.reactivestreams.Subscriber can be ahead of the slowest one before slowing the processing down due to back pressure.

If fanout is false then the Publisher will only support a single Subscriber and reject any additional Subscribers with korolev.akka.util.KorolevStreamPublisher.MultipleSubscribersProhibitedException.

Attributes