Hi, im using a gateway timer script to do some network depenedent work. If the servers connection is down this script will throw an exception.
I want to instead catch this exception and retry a couple of times with a delay.
I know using any form of sleep is kinda discouraged, but i dont see any other way of achieving this, and if it runs on its own thread it should not bog down other things?
Am i wrong here, or is there some other function that could be used?