-
Notifications
You must be signed in to change notification settings - Fork 63
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
Actor wakeup #38
Comments
I have tried to just send the message from the actor, just like you did in your examples: It works but for some reason the delayed period is ignored and it just fires rapidly instead of the 2 seconds delay. Thanks, |
Hello, Try to simply do something like:
With the implementation of your Sincerely. |
Got it, thanks! I will use it. |
Thank you @davinellulinvega for providing assistance on this while I was out travelling! @dkhan11, please feel free to post (either here or on the thespian.py grouplist) if you encounter any additional troubles. Regards, |
Hi again,
I'm trying to use the wakeupAfter function with no real success. It works but I might just not understand how it supposed to work...
Example:
class MyActor(Actor):
hello = ActorSystem().createActor(MyActor)
ActorSystem().ask(hello, message, 1)
Shouldn't this code just run in a loop forever? I manage to receive the WakupMessage but only if I specify a high timeout for the 'ask', like this:
ActorSystem().ask(hello, message, 10)
What is the right approach for starting an actor and just let it run in a loop without waiting forever for responses? what is the right approach for just starting an actor and let it run forever?
Thanks for the help.
DD.
The text was updated successfully, but these errors were encountered: