coyote icon indicating copy to clipboard operation
coyote copied to clipboard

Request for Actors to be notified when the runtime is stopped

Open lovettchris opened this issue 5 years ago • 0 comments

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.

lovettchris avatar Jun 26 '20 01:06 lovettchris