c# task cancel code example
Example: c# create cancelation token
CancellationTokenSource source = new CancellationTokenSource();
CancellationToken token = source.Token;
CancellationTokenSource source = new CancellationTokenSource();
CancellationToken token = source.Token;