Not thread safe but javascript is single threaded for now.
any function that should have its progress displayed while it is running
Not thread safe but javascript is single threaded for now.