Balance

org.apache.pekko.stream.scaladsl.Balance
See theBalance companion class
object Balance

Attributes

Companion
class
Source
Graph.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Balance.type

Members list

Value members

Concrete methods

def apply[T](outputPorts: Int, waitForAllDownstreams: Boolean): Balance[T]

Create a new Balance with the specified number of output ports. This method sets eagerCancel to false. To specify a different value for the eagerCancel parameter, then instantiate Balance using the constructor.

Create a new Balance with the specified number of output ports. This method sets eagerCancel to false. To specify a different value for the eagerCancel parameter, then instantiate Balance using the constructor.

If eagerCancel is true, balance cancels upstream if any of its downstreams cancel, if false, when all have cancelled.

Value parameters

outputPorts

number of output ports

waitForAllDownstreams

if you use waitForAllDownstreams = true it will not start emitting elements to downstream outputs until all of them have requested at least one element, default value is false

Attributes

Source
Graph.scala