I came up a much simplified program to test, and I still get nothing:

val source: Source[Int, Unit] = Source(1 to 10)
val printSink = Sink.foreach[Int](e => println(e))

val actionStream: ArrayBuffer[(Int) => Int] = ArrayBuffer.empty[(Int) => Int]

def add(a: Int) = a + 1

def exec(): Unit = {
  val sourceReady = actionStream.drop(1).foldLeft(source)
  {(source, action) =>
    source.via(Flow[Int].mapAsync(e => Future(action.apply(e))))
  }

  sourceReady

  sourceReady.runWith(printSink)
}

"parallel test" should "work" in {
  actionStream += ((a: Int) => add(a))
  actionStream += ((a: Int) => add(a))

  exec()
}

-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: 
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>>      Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to