Hi,

My code looks like
  
lazy val userLinksActor: ActorRef = Akka.system.actorOf(Props(new 
UserLinksActor(articleReader)),"userLinksActor")

  def receive = {
    case GetLinks(usersFuture) =>
      
      usersFuture.onComplete {
        case Success(users: List[User]) => {
          users.foreach(user => 
//here should i use val userLinksActor or create each time new actor?
//each of this actor is calling ws, when i use val userLinksActor these 
calls are synchronized, one after another. When i create new actor all 
calls to //ws are asnyc
//I thought that i should use one reference to actor(val) and akka will 
spawn new when needed and parallel calls
Akka.system.actorOf(Props(new UserLinksActor(articleReader))) ! 
GetUserLinks(user, originalSender))
        }  
  }
}

I have another question here about akka, maybe someone can help
https://groups.google.com/forum/#!topic/play-framework/DrqNw-rA2Lo

-- 
>>>>>>>>>>      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 akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
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