Skip to content

Conversation

@thiagomajesk
Copy link
Contributor

Tries to improve (on top of the improvement) the wording on the docs to distinguish that DynamicSupervisor (in contrast to Supervisor) can only start children dynamically. I think this distinction is important because Supervisor can also start children "dynamically" (although the initialization requirements are different).

PS.: See whole discussion here.

thiagomajesk and others added 2 commits July 8, 2022 18:28
Tries to improve (on top of the improvement) the wording on the docs to distinguish that `DynamicSupervisor` (in contrast to `Supervisor`) can **only** start children dynamically. I think this distinction is important because `Supervisor` can also start children dynamically (although the initialization requirements are different). 

PS.: See whole discussion [here](https://elixirforum.com/t/difference-between-supervisors-and-dynamicsupervisors-what-am-i-missing/48821/5?u=thiagomajesk).
@josevalim
Copy link
Member

Thank you! I have reverted the changes to the second paragraph because I was taught that the "differently from ..., x does this, y does that" should most often be written as "x does this, y does that" for clarity. :)

@josevalim josevalim merged commit bbb7734 into elixir-lang:main Jul 9, 2022
@josevalim
Copy link
Member

💚 💙 💜 💛 ❤️

@thiagomajesk
Copy link
Contributor Author

Thanks for the suggestion @josevalim! I think this little sentence change made it even better:

A supervisor optimized to only start children dynamically.

- I Came Looking For Copper And I Found Gold 🙈

josevalim pushed a commit to elixir-lang/elixir-lang.github.com that referenced this pull request Jul 14, 2022
Ads a small note about the purpose of `Supervisor` and  `DynamicSupervisor` based on the previous improvements made elixir-lang/elixir#11970 and elixir-lang/elixir#11973.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants