An accumulator of elements into a future of a result.
This is essentially a lightweight wrapper around a Sink that gets materialised to a Future, but provides convenient methods for working directly with that future as well as transforming the input.
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
Members list
Value members
Abstract methods
Convert this accumulator to a Java Accumulator.
Convert this accumulator to a Java Accumulator.
Attributes
- Returns
-
The Java accumulator.
Map the result of this accumulator to something else.
Map the result of this accumulator to something else.
Attributes
Map the result of this accumulator to a future of something else.
Map the result of this accumulator to a future of something else.
Attributes
Recover from errors encountered by this accumulator.
Recover from errors encountered by this accumulator.
Attributes
Recover from errors encountered by this accumulator.
Recover from errors encountered by this accumulator.
Attributes
Run this accumulator by feeding in the given source.
Run this accumulator by feeding in the given source.
Attributes
Run this accumulator by feeding nothing into it.
Run this accumulator by feeding nothing into it.
Attributes
Run this accumulator by feeding a single element into it.
Run this accumulator by feeding a single element into it.
Attributes
Return a new accumulator that first feeds the input through the given flow before it goes through this accumulator.
Return a new accumulator that first feeds the input through the given flow before it goes through this accumulator.
Attributes
Concrete methods
Right associative operator alias for through.
Right associative operator alias for through.
This can be used for a more fluent DSL that matches the flow of the data, for example:
val intAccumulator: Accumulator[Int, Unit] = ...
val toInt = Flow[String].map(_.toInt)
val stringAccumulator = toInt ~>: intAccumulator
Attributes
Right associative operator alias for run.
Right associative operator alias for run.
This can be used for a more fluent DSL that matches the flow of the data, for example:
val intAccumulator: Accumulator[Int, Int] = ...
val source = Source(1 to 3)
val intFuture = source ~>: intAccumulator