PekkoStreams

play.api.libs.streams.PekkoStreams
object PekkoStreams

Utilities for Pekko Streams merging and bypassing of packets.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def bypassWith[In, FlowIn, Out](splitter: In => Either[FlowIn, Out]): Flow[FlowIn, Out, _] => Flow[In, Out, _]

Bypass the given flow using the given splitter function.

Bypass the given flow using the given splitter function.

If the splitter function returns Left, they will go through the flow. If it returns Right, they will bypass the flow.

Attributes

def bypassWith[In, FlowIn, Out](splitter: Flow[In, Either[FlowIn, Out], _], mergeStrategy: Graph[UniformFanInShape[Out, Out], _]): Flow[FlowIn, Out, _] => Flow[In, Out, _]

Using the given splitter flow, allow messages to bypass a flow.

Using the given splitter flow, allow messages to bypass a flow.

If the splitter flow produces Left, they will be fed into the flow. If it produces Right, they will bypass the flow.

Attributes

A flow that will ignore downstream cancellation, and instead will continue receiving and ignoring the stream.

A flow that will ignore downstream cancellation, and instead will continue receiving and ignoring the stream.

Attributes

def ignoreAfterFinish[T]: Flow[T, T, _]

A flow that will ignore upstream finishes.

A flow that will ignore upstream finishes.

Attributes