I have a loop that freezes the UI for a few seconds. Until setTimeout and setInterval is available is there a way to request that the UI of the plugin be update?
For example,
myLabel.text = "Running process...please wait";
for (var i=0;i<100k;i++) {
// run through artboards
}
In the example above the label is not updated until midway? to or after the for loop ends. The update method would force the display to be drawn. It could be async.
myLabel.text = "Running process...please wait";
requestAnimationFrame(); // update the UI
for (var i=0;i<100k;i++) {
// run through artboards
}