I want to test some Akka streams features like conflate
. For this, I need to construct a source which is not affected by backpressure within a simple unit test. Naive attempts like
Source.tick(1.milli, 1.milli, "tick").map(_ => Random.nextDouble())
do not work because of backpressure. OTOH going over HTTP is probably overkill.
How would I create a simple Source
for a unit test which is not affected by backpressure?