Skip to content

Commit 8291c2f

Browse files
author
José Valim
committed
Do not depend on Supervisor.start_child
Signed-off-by: José Valim <[email protected]>
1 parent f663b2e commit 8291c2f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/elixir/lib/dynamic_supervisor.ex

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,11 @@ defmodule DynamicSupervisor do
163163
@type strategy :: :one_for_one
164164

165165
@typedoc "Return values of `start_child` functions"
166-
@type on_start_child :: Supervisor.on_start_child() | :ignore | {:error, :max_children}
166+
@type on_start_child ::
167+
{:ok, pid}
168+
| {:ok, pid, info :: term}
169+
| :ignore
170+
| {:error, {:already_started, pid} | :max_children | term}
167171

168172
defstruct [
169173
:args,

0 commit comments

Comments
 (0)