cancellation token example c#
Example 1: c# cancellationtoken
[System.Runtime.InteropServices.ComVisible(false)]
public struct CancellationToken
Example 2: c# create cancelation token
CancellationTokenSource source = new CancellationTokenSource();
CancellationToken token = source.Token;