rebar3
rebar3 copied to clipboard
Extend the supervisor template with auto_shutdown and significant keys
OTP24 introduced the automatic shutdown feature, more details here: http://erlang.org/doc/design_principles/sup_princ.html#automatic-shutdown
The automatic shutdown feature appeared in OTP 24.0, but applications using this feature will also compile and run with older OTP versions. I tried with OTP 23.2.1 and it compiled and started fine.
Shouldn't crash since it is just a map. But I don't know that we need it in the actual spec and not just the comment, so either way is fine with me. Should at least add a comment next to it if it remains in the map to say it will do nothing in pre-24 OTPs.