googleinterns / filesystem-in-appsscript

Apache License 2.0
5 stars 1 forks source link

Blocker method for File Mapper APIs #76

Closed muskangarg98 closed 4 years ago

muskangarg98 commented 4 years ago

A method to convert a function to a blocking function which enables execution blocking for HTML Dialogs as well, which is not possible in Apps Script otherwise. This function uses sleep API to enable delays and calls the APIs a few times after delays to check if the user has provided the required mapping or not. If the user still fails to provide the mapping, then the execution is stopped and error is thrown using an Alert Box.

Error Alert to let the user know that the current execution has failed and they need to start the execution again. Screenshot 2020-07-06 at 4 29 04 PM