Report question

Question: How to pause App Scripts until spreadsheet finishes calculation