I have a button that when pressed, calls a function that modifies up to 9 CalendarEvent
s. Since calls to the CalendarApp
are slow, and execution to make changes to 9 events takes about 20-30 seconds, I'm trying to implement something like an "updating" message, so that the user of the UI knows that changes are actually being made.
I'm having trouble figuring out how I can update the UI while my function, saveChanges
, runs in the background. I know that there is a way to accomplish this, but I can't figure it out.
In order to the popup or label to become visible to the user, the UI instance needs to be returned. But if I return the UI instance, execution of my function stops entirely. How can I work around that?