Threading or Pause-Ready BackgroundWorker

It is hard to make a Thread and control it well. However, using a Backgroundworker is much easier until you need to pause/resume it.

Can we make a BackgroundWorker pause-ready? Yes. I have joined a discussion on the MSDN Forums. It seems that we approach to a solution finally. I have contributed the code samples. And in fact I have used the code in a big project. It runs just Okay.

Generally speaking, I will resort to BackgroundWorker in the future.

© Lex Li. All rights reserved. The code included is licensed under CC BY 4.0 unless otherwise noted.

© - Lex Li. All rights reserved.

Using the Chirpy theme for Jekyll.

Last updated on May 01, 2024