Last active
January 31, 2019 01:52
-
-
Save tzumby/647b621c2741e6d9fbcb6907a3879895 to your computer and use it in GitHub Desktop.
Crypto Prices Blog Post
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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