I have a service that is waiting for a response from another service that I have to poll.
Is there a sleep/wait command, e.g. just to sleep for a second?
I want to write a poll loop like pseudo code:
do {
request status
if status is OK {
break;
}
if timeout {
break
}
sleep for 1 second
} while true // forever