I have a top level Supervisor and a worker called Poller. What I’m looking for is to restart Poller permanently with a timeout. I.e. when internet connection lost for 10 mins. After trying to implement that with Supervisor but later I thought this not a right way to do that. What are the alternatives or where I’m wrong?
Yes it wasn’t clear for me either. I started squeezing in the supervisors everywhere and made my processes crash too often and use it as a flow control mechanism. This is clearly as bad as using exceptions / catching them to do control flow.