I am using Google Sheets api for creating a spreadsheet with multiple sheets, all of which have custom function, which is written in Google App Script. This function fetches data from my server, and usually there are at least 25 function calls.
Now I want to download the file using google sheets api, once all the custom functions are finished properly.
How do I wait for all custom functions to finish and then proceed with my google sheets api calls?