Skip to content

Add start_link/1 function to GroupMemberSupervisor - #69

Closed
objectuser wants to merge 1 commit into
masterfrom
start-link
Closed

Add start_link/1 function to GroupMemberSupervisor#69
objectuser wants to merge 1 commit into
masterfrom
start-link

Conversation

@objectuser

Copy link
Copy Markdown
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
Copy Markdown

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

@objectuser

Copy link
Copy Markdown
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
Copy Markdown

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
@TylerWitt

Copy link
Copy Markdown
Contributor

Resolved by #131

@TylerWitt TylerWitt closed this Aug 4, 2025
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.

4 participants