I would like to check for the status some call made on a separate system, I can’t make a callback, how do I do a busy loop and just sleep for some time?
var isReady = false;
isReady = checkOtherSystem();
} while (!isReady)
Ideally you could find some sort of callback mechanism to avoid occupying a thread while you wait.