Why Akka streams cycle doesn't end in this graph?
I would like to create a graph that loop n times before going to sink. I've just created this sample that fulfill my requirements but doesn't end after going to sink and I really don't understand why. Can someone enlighten me? Thanks. import akka.actor.ActorSystem import akka.stream.scaladsl._ import akka.stream.{ActorMaterializer, UniformFanOutShape} import scala.concurrent.Future object test { def main(args: Array[String]) { val ignore: Sink[Any, Future[Unit]] = Sink.ignore val closed: RunnableGraph[Future[Unit]] = FlowGraph.closed(ignore) { implicit b => sink => { import FlowGraph.Implicits