how do i create intervals in a loop without pausing the entire app? Whenever I call Thread.sleep or Timunit.sleep it pauses the entire application. I'm currently trying to do something with a while loop and want one second intervals each time.how do i create intervals in a loop without pau