Re: [akka-user] What is the right way to wait for an actor to be terminated?

2015-05-08 Thread Akka Team
On Thu, May 7, 2015 at 9:26 PM, Moiz Raja moizr...@gmail.com wrote: This is a top level one - but it is not the only top level actor in the actor system. The only safe way to reuse a name is to watch the actor from the *parent* actor, and once received a Terminated message, create an actor

Re: [akka-user] What is the right way to wait for an actor to be terminated?

2015-05-07 Thread Konrad Malawski
Is this a child actor we’re talking about or a top level one? --  Cheers, Konrad 'ktoso’ Malawski Akka @ Typesafe On 7 May 2015 at 21:18:27, Moiz Raja (moizr...@gmail.com) wrote: I have a need to wait for an actor to be terminated because I need to recreate a new actor with the same name on

Re: [akka-user] What is the right way to wait for an actor to be terminated?

2015-05-07 Thread Moiz Raja
This is a top level one - but it is not the only top level actor in the actor system. On Thursday, 7 May 2015 12:21:51 UTC-7, Konrad Malawski wrote: Is this a child actor we’re talking about or a top level one? -- Cheers, Konrad 'ktoso’ Malawski Akka http://akka.io @ Typesafe

[akka-user] What is the right way to wait for an actor to be terminated?

2015-05-07 Thread Moiz Raja
I have a need to wait for an actor to be terminated because I need to recreate a new actor with the same name on the same actor system. What would be the right way to wait for the old actor to be terminated? Note that I am sending a PoisonPill to the Actor as on now to terminate it. Thanks,