Run function asynchronously in Google Apps Script
问题 I'm making a Slack bot that calls a GAS function. Everything is working except Slack shows an error message because it only waits 3 seconds for a response when calling an API. Can anyone help me to work out how to run everyDay2 asynchronously so that I can return the response before it's finished. I've tried Promises and callbacks but I can't solve it. function doPost(e){ const promise = new Promise(everyDay2); return ContentService.createTextOutput('thinking...'); } 回答1: Promises doesn't