You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When calling a which_children with a child that is currently delayed, the result for child does not match the Supervisor behaviour because next to a pid, :restarting and :unknown the value nil can be returned.
When calling a which_children with a child that is currently delayed, the result for
child
does not match theSupervisor
behaviour because next to a pid,:restarting
and:unknown
the valuenil
can be returned.See: https://hexdocs.pm/elixir/Supervisor.html#which_children/1
This function in DelayedServer will return
nil
:def handle_call(:delayed_pid, _from, state), do: {:reply,state.pid,state}
I think this function should not return
nil
, but rather:restarting
or maybe a new value like:delayed
.The text was updated successfully, but these errors were encountered: