Attributes
- Companion
- trait
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Accumulator.type
Members list
Value members
Concrete methods
Create a new accumulator from the given Sink.
Create a new accumulator from the given Sink.
Attributes
Create a done accumulator.
Create a done accumulator.
The underlying sink will cancel as soon as its onSubscribe method is called, and the materialized value will be an immediately available future of a
.
Attributes
Create a done accumulator.
Create a done accumulator.
The underlying sink will cancel as soon as its onSubscribe method is called, and the materialized value will be the passed in future.
Attributes
Flatten a future of an accumulator to an accumulator.
Flatten a future of an accumulator to an accumulator.
Attributes
Create an accumulator that forwards the stream fed into it to the source it produces.
Create an accumulator that forwards the stream fed into it to the source it produces.
This is useful for when you want to send the consumed stream to another API that takes a Source as input.
Extreme care must be taken when using this accumulator - the source must always be materialized and consumed. If it isn't, this could lead to resource leaks and deadlocks upstream.
Attributes
- Returns
-
An accumulator that forwards the stream to the produced source.
Create an accumulator that is capable of handling the stream as a single, possibly empty, element, with a sink provided as a fallback if the stream can't be expressed as a single element.
Create an accumulator that is capable of handling the stream as a single, possibly empty, element, with a sink provided as a fallback if the stream can't be expressed as a single element.
This is intended to be able to be used to avoid a stream materialization for strict entities.