Convert this accumulator to a Java Accumulator.
Convert this accumulator to a Java Accumulator.
The Java accumulator.
Map the result of this accumulator to something else.
Map the result of this accumulator to a future of something else.
Recover from errors encountered by this accumulator.
Recover from errors encountered by this accumulator.
Run this accumulator by feeding nothing into it.
Run this accumulator by feeding in the given source.
Return a new accumulator that first feeds the input through the given flow before it goes through this accumulator.
Convert this accumulator to a Sink that gets materialised to a Future.
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
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
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.