CancellationTokenSource Class
A
CancellationTokenSource allows you to issue cancellation requests to one or more methods.To use a token source:
- Create a token source.
- Attach the token to one or more operations by passing the return value of getToken as parameter.
- Later, you can cancel the associated operations by calling cancel on this token source.
This class is thread safe.
java.lang.Object
com.grapecity.documents.excel.CancellationTokenSource