Skip to content

Conversation

eksperimental
Copy link
Contributor

No description provided.

@@ -529,12 +528,12 @@ defmodule Supervisor do
| {:max_seconds, pos_integer}

@typedoc "Supported strategies"
@type strategy :: :one_for_one | :one_for_all | :rest_for_one
@type strategy :: :one_for_one | :one_for_all | :rest_for_one | :simple_one_for_one
Copy link
Contributor Author

@eksperimental eksperimental Jul 11, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Even though it has been deprecated, it should still be reflected in the typespecs

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have recently agreed in another issue that we won'tkeep in typespecs as we do want the warning there still.


# Note we have inlined all types for readability
@typedoc "The supervisor specification"
@type child_spec :: %{
required(:id) => term(),
required(:id) => module() | term(),
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Even though it's redundant it shows what's the default :id

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think atom() is better as the module() is just a consequence of the atom.

@josevalim josevalim merged commit d10514c into elixir-lang:master Jul 11, 2018
@josevalim
Copy link
Member

❤️ 💚 💙 💛 💜

@eksperimental eksperimental deleted the supervisor_docs branch July 11, 2018 11:12
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