Though I know it\'ll be a bit silly to ask, still I want to inquire more about the technical perspective of it.
A simple example of an infinite loop:
pub
I think this is not possible. Only using break within the loop. You could use
while(cond) {}
And from some other place make it false