Make a BackgroundWorker do several operations sequentially without freezing the form

The solution is simple: have one BGW execute all of the commands, not just one BGW for each command. You’ll need a List<svnCommand> to store the commands so you can easily pass them to RunWorkerAsync(). DoWork() can simply iterate the list with foreach.

Leave a Comment