[akka-user] What is the correct order of tell and context.become?

2014-02-10 Thread Levi Notik
Consider the following example taken from the akka docs: 1. def receive = { 2. case "job" => worker ! "crunch" 3. case Shutdown => 4. worker ! PoisonPill 5. context become shuttingDown 6. } 7. 8. def shuttingDown: Receive = { 9. case "job" => sender() ! "service unava

Re: [akka-user] What is the correct order of tell and context.become?

2014-02-10 Thread √iktor Ҡlang
Hi Levi, since an actor cannot process the next message until the current has finished, there is no problem. On Mon, Feb 10, 2014 at 7:03 PM, Levi Notik wrote: > Consider the following example taken from the akka docs: > > >1. def receive = { >2. case "job" => worker ! "crunch" >3.