30 ms·
yep - init is for things you can guarantee, not things you can't, like anything needing to make network or database calls. handle_continue was added for these
by dmsnell 5y ago
yep - init is for things you can guarantee, not things you can't, like anything needing to make network or database calls.
handle_continue was added for these kinds of things that should happen when starting up gen_ processes.
the entire init chain is sequential, so not only will it risk crashing your entire supervisor tree, but it will slow startup