-
Notifications
You must be signed in to change notification settings - Fork 36
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
Document features of Context::stop_all
#157
Comments
I'm in the process of "migrating" code to the new changes that were pushed in recent days. Is it correct that there is currently no In my old code, I kept a context which I used to stop a certain actor, thus triggering the remaining actors in the chain to get dropped. I can't do the same thing with |
There is still
I would suggest making a message |
Yes, I saw the
In #119 it was mentioned that |
No, not from the outside currently. I would recommend just setting the priority to max when you send it |
Thanks for the clarification! I'm really liking this library, it's just so simple but can do everything I want. |
You could also implement your own event loop (see examples), which allows you to not give up ownership of |
Does this seem appropriate? /// Stop all actors on this address. This bypasses the message queue, so it will always be
/// handled as soon as possible by all actors, and will not wait for other messages to be
/// enqueued if the queue is full. In other words, it will not wait for an actor which is
/// lagging behind on broadcast messages to catch up before other actors can receive the shutdown
/// message. Therefore, each actor is guaranteed to shut down as its next action immediately
/// after it finishes processing its current message, or as soon as its task is woken if it is
/// currently idle.
///
/// This is similar to calling [`Context::stop_self`] on all actors active on this address, but
/// a broadcast message that would cause [`Context::stop_self`] to be called may have to wait
/// for other broadcast messages, during which time other messages may be handled by actors (i.e
/// the shutdown may be delayed by a lagging actor). |
Document the findings of #119.
The text was updated successfully, but these errors were encountered: