Hello,
I have a long running function that gets executed in the main thread and I want to give the user some feedback of the progress. The function looks something like:

Code:
function f(){
        var i = 0;
        for (i = 0; i < nbFiles; i++) {
            var valid = true;
            var aFile = files[i];
            batchSize += aFile.size;


            if (!uploadCfg.isSizeAccepted(aFile.size)) {
                invalidFilesSize.push(aFile);
                valid = false;
            }


            if (!uploadCfg.isExtensionAccepted(aFile.name)) {
                invalidFilesExtension.push(aFile);
                valid = false;
            }


            if (valid) {
                filesList.push(aFile);
            }
        }
}
If I try to popup a wait progressbar with Ext.Msg.wait() before starting the function , as expected, the progress bar does not show up because my loop is tight.

Is there a way to overcome this problem?

Best regards,
Dan.