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

Request for Actors to be notified when the runtime is stopped #36

Open
lovettchris opened this issue Jun 26, 2020 · 0 comments
Open

Request for Actors to be notified when the runtime is stopped #36

lovettchris opened this issue Jun 26, 2020 · 0 comments

Comments

@lovettchris
Copy link
Member

lovettchris commented Jun 26, 2020

ICoyoteRuntime.Stop() does not tell the actors about this event, it would be nice is we had a way to cause OnHaltAsync to be invoked on all actors, without having to explicitly send HaltEvent to each of them - outside code may not even know all the ActorId's to do this, whereas the Runtime does. Perhaps we need a new async method like this:

    Task HaltAsync();

And the ActorRuntime can implement this by calling OnHaltAsync on all actors that are not already halted.

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