returnfunctionlocalx = 0;whilex < 5000 doyield(); --yield works in combination with deltaTimeif x >30thenyieldBreak(); --causes this coroutine to close out immediatelyend--without yield, the application would freeze & be stuck in a loop.--until x is equal to 5000 x = x +1;endlog('this will never be reached.');end