Created
November 23, 2022 14:37
-
-
Save tanukesensei/9f7bbcef42ee96c804520f1c3294720f to your computer and use it in GitHub Desktop.
Revisions
-
tanukesensei created this gist
Nov 23, 2022 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,20 @@ defmodule Friends.Application do # See https://hexdocs.pm/elixir/Application.html # for more information on OTP Applications @moduledoc false use Application @impl true def start(_type, _args) do children = [ # Starts a worker by calling: Friends.Worker.start_link(arg) # {Friends.Worker, arg} ] # See https://hexdocs.pm/elixir/Supervisor.html # for other strategies and supported options opts = [strategy: :one_for_one, name: Friends.Supervisor] Supervisor.start_link(children, opts) end end