<div dir="ltr"><div dir="ltr"></div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, May 10, 2021 at 9:27 AM Sean Hinde <<a href="mailto:sean.hinde@mac.com">sean.hinde@mac.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow-wrap: break-word;"><div><br></div><div>The current self() ! finish_startup recommendation drops all the startup ordering and failure recovery synchronisation on the programmer, and that is hard to get right.<br></div></div></blockquote><div><br></div><div>These aren't current anymore. There is now a 'continue' return option with a 'handle_continue' handler just for that: <a href="http://erlang.org/doc/man/gen_server.html#Module:handle_continue-2">http://erlang.org/doc/man/gen_server.html#Module:handle_continue-2</a> -- do note that gen_statem doesn't require it because the whole FSM mechanism has even more powerful general mechanisms for that kind of thing.<br></div></div></div>