Skip to content

Instantly share code, notes, and snippets.

@tzumby
Last active January 31, 2019 01:52
Show Gist options
  • Save tzumby/647b621c2741e6d9fbcb6907a3879895 to your computer and use it in GitHub Desktop.
Save tzumby/647b621c2741e6d9fbcb6907a3879895 to your computer and use it in GitHub Desktop.
Crypto Prices Blog Post
defmodule CryptoPrices.Aggregator.Supervisor do
alias CryptoPrices.Aggregator
use Supervisor
def start_link(opts) do
Supervisor.start_link(__MODULE__, opts, name: __MODULE__)
end
def init(opts) do
children = [
{Task.Supervisor, name: Aggregator.TaskSupervisor}
]
Supervisor.init(children, strategy: :rest_for_one)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment