Current section

Files

Jump to
doex lib doex application.ex
Raw

lib/doex/application.ex

defmodule Doex.Application do
@moduledoc false
# See http://elixir-lang.org/docs/stable/elixir/Application.html
use Application
def start(_type, _args) do
import Supervisor.Spec, warn: false
children = [
worker(Doex.Worker, []),
]
opts = [
strategy: :one_for_one,
name: Doex.Supervisor
]
Supervisor.start_link(children, opts)
end
end