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

How to directly stop an actor? #65

Closed
noahsilverman opened this issue Nov 28, 2023 · 3 comments
Closed

How to directly stop an actor? #65

noahsilverman opened this issue Nov 28, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@noahsilverman
Copy link

We can send a Poison message to any actor, but that won't immediately kill the actor.

What if we want to immediately stop the actor, ignoring all messages in the queue?

@anthdm anthdm added the enhancement New feature or request label Nov 28, 2023
@anthdm
Copy link
Owner

anthdm commented Nov 28, 2023

@noahsilverman That's a good question! That is something that needs to be coded in.

I was thinking of a Stop message. We could call it with Stop(pid) instead of Poision(pid)

Will try to add that in today for you.

@noahsilverman
Copy link
Author

@anthdm I appreciate it! Once I'm more familiar with the code base, I don't mind helping to contribute . (Still learning how all the internals are organized)

@anthdm
Copy link
Owner

anthdm commented Nov 30, 2023

close by #69

@anthdm anthdm closed this as completed Nov 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants