Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add start_link/1 function to GroupMemberSupervisor #69

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

objectuser
Copy link
Contributor

This function is in support for the new supervisor child specs supported
in Elixir. This allows just the module to be provided as a child to the
parent supervisor.

  def start(_type, _args) do

    children = [
      Kaffe.GroupMemberSupervisor
    ]

    opts = [strategy: :one_for_all, name: MyApp.Supervisor]
    Supervisor.start_link(children, opts)
  end

This function is in support for the new supervisor child specs supported
in Elixir. This allows just the module to be provided as a child to the
parent supervisor.

```
  def start(_type, _args) do

    children = [
      Kaffe.GroupMemberSupervisor
    ]

    opts = [strategy: :one_for_all, name: MyApp.Supervisor]
    Supervisor.start_link(children, opts)
  end
```
@objectuser objectuser self-assigned this May 9, 2018
@objectuser objectuser requested a review from davidsantoso May 9, 2018 13:21
@dtykocki
Copy link

@objectuser - Is this something that's still worth merging in? Are there any risks with backwards compatibility?

@objectuser
Copy link
Contributor Author

@dtykocki I'm not sure why I didn't merge this in. I don't think there are any compatibility issues because it's additive. I do think the extra changes should be removed.

@vittoriabitton
Copy link

That change can be merged to be updated with the Supervisor child specs?

travismorrison added a commit that referenced this pull request Nov 16, 2021
- elixir version -> 1.12
- deprecated supervisor()/supervise()/worker() methods -> Supervisor.start_link()
  (in the spirit of #69)
- redefined method docs -> comments
- deprecated Mix.Config -> Elixir's Config implementation
- deprecated :crypto.rand_uniform() -> :rand.uniform
travismorrison added a commit that referenced this pull request Nov 16, 2021
- elixir version -> 1.12
- deprecated supervisor()/supervise()/worker() methods -> Supervisor.start_link()
  (in the spirit of #69)
- redefined method docs -> comments
- deprecated Mix.Config -> Elixir's Config implementation
- deprecated :crypto.rand_uniform() -> :rand.uniform
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants