Skip to content

Commit 4d3084b

Browse files
author
José Valim
committed
No longer make DynamicSupervisor sup_flags opaque, closes #7666
Signed-off-by: José Valim <[email protected]>
1 parent 09a13b0 commit 4d3084b

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

lib/elixir/lib/dynamic_supervisor.ex

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -137,13 +137,14 @@ defmodule DynamicSupervisor do
137137
"""
138138
@callback init(args :: term) :: {:ok, sup_flags()} | :ignore
139139

140-
@opaque sup_flags() :: %{
141-
strategy: strategy(),
142-
intensity: non_neg_integer(),
143-
period: pos_integer(),
144-
max_children: non_neg_integer() | :infinity,
145-
extra_arguments: [term()]
146-
}
140+
@typedoc "The supervisor flags returned on init"
141+
@type sup_flags() :: %{
142+
strategy: strategy(),
143+
intensity: non_neg_integer(),
144+
period: pos_integer(),
145+
max_children: non_neg_integer() | :infinity,
146+
extra_arguments: [term()]
147+
}
147148

148149
@typedoc "Option values used by the `start*` functions"
149150
@type option :: {:name, Supervisor.name()} | init_option()

0 commit comments

Comments
 (0)