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

Inverse children stopping order. #935

Merged
merged 1 commit into from
Nov 21, 2023

Conversation

nightwolfz
Copy link
Contributor

Stopping an actors children should happen in reverse of spawning order.

Example

Let's say actor root spawns the following actors in this order:

  1. dbActor
  2. reader
  3. writer

Both reader and writer use the dbActor in order to save their state. If we poison root, reader and writer won't be able to save their state. I suggest we inverse the order of stopping to make this common use-case feasible.

  1. writer
  2. reader
  3. dbActor

@rogeralsing rogeralsing merged commit 7ecca73 into asynkron:dev Nov 21, 2023
2 checks passed
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

Successfully merging this pull request may close these issues.

2 participants