rebar3 icon indicating copy to clipboard operation
rebar3 copied to clipboard

Extend the supervisor template with auto_shutdown and significant keys

Open michalslaski opened this issue 3 years ago • 2 comments

OTP24 introduced the automatic shutdown feature, more details here: http://erlang.org/doc/design_principles/sup_princ.html#automatic-shutdown

michalslaski avatar May 25 '21 10:05 michalslaski

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.

michalslaski avatar May 25 '21 11:05 michalslaski

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.

tsloughter avatar May 25 '21 12:05 tsloughter