When to dispose CancellationTokenSource?

The class CancellationTokenSource is disposable. A quick look in Reflector proves usage of KernelEvent, a (very likely) unmanaged resource. Since CancellationTokenSource has no finalizer, if we do not dispose it, the GC won’t do it. On the other hand, if you look at the samples listed on the MSDN article Cancellation in Managed Threads, only … Read more