Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Receptionist #1

Open
asethia opened this issue Jul 26, 2015 · 1 comment
Open

Receptionist #1

asethia opened this issue Jul 26, 2015 · 1 comment

Comments

@asethia
Copy link

asethia commented Jul 26, 2015

Hi,

I did not understand an actor having multiple receiver ; how Actor will know his initial receive state like in this case it is waiting.

The second question is calling "context.become" in waiting state will change actor behavior to "runNext", similar we have done running receiver as well. Why it is not being done in "runNext" and "enqueueJob". The runNext and enqueueJob is calling running(queue) as function call not as change in behavior.

I am new learner for Akka, did not see any code where receiver is called as function instead of conext.become.

Regards,
Arun

@asethia
Copy link
Author

asethia commented Jul 26, 2015

Initial receive is taken care by def receive=waiting, my second question I am not clear. Please can some one help me for second question.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant