This is probably a simple problem for the educated mind of scala, but I'm still a beginner;)
I have a basic actor who submits a task to several acting actors and answers that this leads to a blocking external call through !?
a = new a a.start println(a !? "12345") class a extends Actor { def act = { loop { react { case msg => val result = worker_actor_1 !? msg result += worker_actor_2 !? msg result += worker_actor_3 !? msg
Now I do not know how to really parallelize the existing participants in a blocking call, because in the end I have to answer (). The caller is not an actor, just an ordinary class.
source share