Saturday August 1st

Friday July 31st

Thursday July 30th

Wednesday July 29th

2 Kicks

TaskCancelledException vs OperationCancelledException

I had a conversation with Stephen Toub, Peter Ritchie and Kevin Hazzard about the different between the TaskCancelledException and the OperationCancelledException. It turns out not to be a big difference, but some understanding might keep you out of a bit of trouble.

1 comments

It is interesting that we even have exceptions thrown by cancellation, but in this case it seems like the hairiness there is circumvented by CancellationToken and CancellationTokenSource. I'm assuming some of the threading issues you're referring to could result in general application exceptions due to the thread terminating?

Commenting on Stories is limited for now and will open up to those recommended by the community. Learn how
Loading DotNetKicks...
brought to you by the Kicks Network