FlowReactiveOps

ox.flow.FlowReactiveOps
trait FlowReactiveOps[+T]

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Flow[T]
Self type
Flow[T]

Members list

Value members

Concrete methods

def toPublisher[U >: T](using Ox, BufferCapacity): Publisher[U]

Converts this Flow into a Publisher. The flow is run every time the publisher is subscribed to.

Converts this Flow into a Publisher. The flow is run every time the publisher is subscribed to.

Must be run within a concurrency scope, as upon subscribing, a fork is created to run the publishing process. Hence, the scope should remain active as long as the publisher is used.

Elements emitted by the flow are buffered, using a buffer of capacity given by the BufferCapacity in scope.

The returned publisher implements the JDK 9+ Flow.Publisher API. To obtain a publisher implementing com.reactivestreams.Publisher, use the flow-reactive-streams module.

Attributes