Packages

A GenServer to monitor PIDs and run callbacks they go down - originally designed to be a watcher for Phoenix channels.

Current section

Files

Jump to
channel_watcher lib application.ex
Raw

lib/application.ex

defmodule ChannelWatcher.Application do
@moduledoc false
use Application
def start(_type, _args) do
children = [
ChannelWatcher
]
opts = [strategy: :one_for_one, name: ChannelWatcher.Supervisor]
Supervisor.start_link(children, opts)
end
end