title: Google Scripts: How to call a function to run after another function is completed
body: <p>I have a google script with 4 different functions that need to run one after another, but a function can run just after the previous one has finished/completed. </p>
  
  <p>The time that takes each function depends, but on average each function takes about 15-20 minutes.</p>
  
  <p>Each function completes an spreadsheet with a lot of data, so I want to run the first function, wait until the first one ends, run the second one, etc. inside a trigger to load the information every (for example) 4 hours.</p>
  
  <p>Thanks!</p>