Skip to content

Tag: akka-stream

fold not working as expected using akka streams

Below is code I’ve written to try an output the sum of each akka message received which has been edited from this guide : The fold operation seems to cause nothing to outputted on the console. However if I use instead of Then the following is outputted : I’m attempting to group a list and perform a fold operation

Sending data to an Akka Stream

I’m attempting to send an ArrayList to an Akka stream for processing. The stream processes the list as follows: 1. Sum the list 2. Square the result of the sum. I have defined the code below to try …