3 ms·
What's the equivalent of this: https://hexdocs.pm/elixir/supervisor-and-application.html https://hexdocs.pm/elixir/supervisor-and-application.html defmodul
by Fire-Dragon-DoL 2y ago
What's the equivalent of this: https://hexdocs.pm/elixir/supervisor-and-application.html https://hexdocs.pm/elixir/supervisor-and-application.html
defmodule KV.Supervisor do
use Supervisor
def start_link(opts) do
Supervisor.start_link(__MODULE__, :ok, opts)
end
@impl true
def init(:ok) do
children = [
KV.Registry
]
Supervisor.init(children, strategy: :one_for_one)
end
end
In ergo