akka.stream.contrib
Create a Source that will output elements of type A given a "producer" function
Source
A
Examples:
stream of current times:
SourceRepeatEval(() => System.currentTimeMillis)
stream of random numbers:
SourceRepeatEval(() => Random.nextInt)
Behavior is the same as in
Source.repeat(()).map(_ => x)
Supports cancellation via materialized Cancellable.
Cancellable
Create a
Source
that will output elements of typeA
given a "producer" functionExamples:
stream of current times:
SourceRepeatEval(() => System.currentTimeMillis)
stream of random numbers:
SourceRepeatEval(() => Random.nextInt)
Behavior is the same as in
Source.repeat(()).map(_ => x)
Supports cancellation via materialized
Cancellable
.