title: Halt in the while loop but the while loop should not halt
body: <p>I have a while loop that has to continuously fetch event from a queue, however, in one of the if statement in the while loop, I need to wait for 10 minutes to execute next statement. What would be a good solution so the while loop does not halt.</p>