I've seen that is possible to use a web worker for doing heavy stuff and not blocking the UI thread. But from what I've tested there is no possiblity to call Excel.run()
from within the worker.
The thing is:
How can I run thousands of Excel.run()
without getting Wait for previous operation to complete exception
?
I've tried many things, like doing in batches of 10 and waiting for every batch to finish, but still get Wait for previous operation to complete exception
error sometimes.
There is also a need that inside each Excel.run()
to call context.sync().