Complex sentence: Then heating should be stopped immediately; while resting the food, residual heat will continue to cook it for a while.
Split into simpler sentences: Then heating should be stopped immediately. While resting the food, residual heat will continue to cook it for a while.