I am using function from a library to process really big word files and I can't change this function. While processing, I want to show a progress bar, because either way the app looks frozen and the users are not aware it's actually working. For now I'm using a worker like this: I am using function from a library to process r