Backroundworker is having Cancellation pending set at random

SilverShaded

Well-known member
Joined
Mar 7, 2020
Messages
93
Programming Experience
10+
I can reproduce this but not every time the sub method is called (it seems to depend were its called from), however at no point have i called CancelAsync() method so i dont understand why the CancellationPending flag is ever set...
 
I believe that if an exception is thrown in async methods, a cancellation gets sent. I'm not sure, though.
 
Back
Top Bottom