Current section

Files

Jump to
islands_board_cache lib islands board cache top.ex
Raw

lib/islands/board/cache/top.ex

defmodule Islands.Board.Cache.Top do
@moduledoc false
use Application
alias __MODULE__
alias Islands.Board.Cache.Server
@spec start(Application.start_type(), term) :: {:ok, pid}
def start(_type, :ok) do
[
# Child spec relying on `use GenServer`...
{Server, :ok}
]
|> Supervisor.start_link(name: Top, strategy: :one_for_one)
end
end