Dry-system: trigger lifecycle method for all components

I’d like to be able to init or start all of my components with one command. finalize runs init and start for all components. Something like Container.init!. Looks like Container.shutdown! does this but for stop.

This feels like a pretty reasonable thing to add. @solnic, @flash-gordon, what do you think?

Surely it makes sense. Generally, we need an iterator over bootable components. The only caveat is the state of components can change as you iterate. I.e. you start a component and it starts another one in order. Not a problem, you just need to be careful in this regard.

1 Like

Yes this, and probably a couple of others, should be added for sure :slight_smile: