Skip to content

Instantly share code, notes, and snippets.

@tanukesensei
Created November 23, 2022 14:37
Show Gist options
  • Select an option

  • Save tanukesensei/9f7bbcef42ee96c804520f1c3294720f to your computer and use it in GitHub Desktop.

Select an option

Save tanukesensei/9f7bbcef42ee96c804520f1c3294720f to your computer and use it in GitHub Desktop.

Revisions

  1. tanukesensei created this gist Nov 23, 2022.
    20 changes: 20 additions & 0 deletions application.ex
    Original 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