I'm and trying to create a program flow as follows
Connect
if failed wait 30secs
else Continue
Retry Connect
if connected then process
basically i need to call a function that will retry a number of times at a particular info and then when it is successful resume the program flow.
I know a thread would do this with sleep but how do i prevent the program from continuing before connection has been made?
Connect
if failed wait 30secs
else Continue
Retry Connect
if connected then process
basically i need to call a function that will retry a number of times at a particular info and then when it is successful resume the program flow.
I know a thread would do this with sleep but how do i prevent the program from continuing before connection has been made?