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

Support child_spec map format. #108

Merged
merged 2 commits into from
Aug 17, 2018
Merged

Conversation

ahovgaard
Copy link
Contributor

A map is the current preferred format for child specifications. This change allows for easier interoperability with other libraries that does not support the old tuple format; for example the function start_supervised/2 from Elixir's ExUnit library. Alternatively, the existing child_spec function could be modified to return a map, since it would still have the stated type.

@getong
Copy link
Contributor

getong commented Aug 17, 2018

@ahovgaard
The map data type is introduced since erlang 17, you can drop the r16 test in the .travis.yml.
@Vagabond I think we can drop suport for erlang r16 now.

@getong
Copy link
Contributor

getong commented Aug 17, 2018

I think this pr can be merged. @Vagabond

@Vagabond Vagabond merged commit 0fe289b into devinus:master Aug 17, 2018
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