February 2018
Intermediate to advanced
552 pages
13h 46m
English
To create an Akka Stream's Sink, we need to use one of its functions, such as foreach, as shown here:
val sampleSink = Sink.foreach(println)
Here, the Sink.foreach function is attached to the println function, which means that anything it receives as input from other Akka Streams components is passed to the println function to display it on the console.
We will explore this more in the coming sections and also in HelloWorld examples.
Read now
Unlock full access