<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jul 20, 2016 at 10:08 PM, semmit mondo <span dir="ltr"><<a href="mailto:semmitmondo@freemail.hu" target="_blank">semmitmondo@freemail.hu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">What's the benefit of having application state returned in start(Type, Args) that is passed down to stop(State) in an OTP application module?  How is this useful?</blockquote></div><br>Suppose you have some state which is dynamically generated when you start the application, a Pid or Ref say. Since the data is dynamic, there is no way you can "guess" it in the stop/1 function, so it must be passed along. It is not that often I use this feature, but when I do, it is really nice to have.<br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">J.</div>
</div></div>