Check out example codes for "c# cancellationtoken". It will help you in understanding the concepts better.

Code Example 1

[System.Runtime.InteropServices.ComVisible(false)]
public struct CancellationToken

Learn ReactJs, React Native from akashmittal.com