Skip to content

Instantly share code, notes, and snippets.

@TylerPachal
Last active January 30, 2019 16:38
Show Gist options
  • Select an option

  • Save TylerPachal/e6ecf2ea7cc1352911574ef2d6d4007f to your computer and use it in GitHub Desktop.

Select an option

Save TylerPachal/e6ecf2ea7cc1352911574ef2d6d4007f to your computer and use it in GitHub Desktop.
def start(_type, _args) do
children = [
Spammer, # New process
Supervisor.child_spec({MyServer, :users}, id: make_ref()),
Supervisor.child_spec({MyServer, :messages}, id: make_ref()),
Supervisor.child_spec({MyServer, :items}, id: make_ref())
]
opts = [strategy: :one_for_one, name: ContinueTest.Supervisor]
Supervisor.start_link(children, opts)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment