thx all clear now !!!

On Sunday, August 7, 2016 at 3:10:18 PM UTC-4, Henry Mai wrote:
>
> > What is testActor  ? There is no variable of that name? what does it 
> represent ? 
>
> testActor in the example is just some arbitrary actor that is created in 
> the test code (not shown in the docs).
>
> It refers to the B actor in this sentence:
> "This code can be used to forward messages, e.g. in a chain A --> Probe 
> --> B, as long as a certain protocol is obeyed."
>
> It is just for example purposes you don't actually need to use an 
> additional actor.
>
> In your case (given the code you pasted before) you probably just want to 
> do this:
>
>    1. val probe = TestProbe()
>    2. probe.setAutoPilot(new TestActor.AutoPilot {
>    3. def run(sender: ActorRef, msg: Any): TestActor.AutoPilot =
>    4. msg match {
>    5. case x ⇒ sender() ! ACK; TestActor.KeepRunning
>    6. }
>    7. })
>
> > 1 - what is the current one referring to here: the next message or the 
> auto-pilot ? To me, this sentence is just confusing, as much as the 
> example. I believe i would need more help to understand it. 
> "current one" is referring to the current auto-pilot.
>

-- 
>>>>>>>>>>      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 https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to