Re: delayed child restart with incremental back-off
Fred Hebert <[email protected]>
| Newsgroups | gmane.comp.lang.erlang.general |
|---|---|
| Message-ID | <CAFA3VZLPkk5eA7Dh8PuaE+s7saaLMjTx-Pii3eD3Rma0JUJU3Q@mail.gmail.com> |
On Mon, May 10, 2021 at 9:27 AM Sean Hinde <[email protected]> wrote: > > 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. > These aren't current anymore. There is now a 'continue' return option with a 'handle_continue' handler just for that: http://erlang.org/doc/man/gen_server.html#Module:handle_continue-2 -- 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.