Break the for loop to more asynchronous execution among more frames

hi

How to break the for loop to more asynchronous execution among with frames… some loop is running i want to stop by some other event…??