Name | Description | |
---|---|---|
cancel | Initiates cancel request. All operations that have been associated with this token will be cancelled.
It is assumed that the consumers of getToken will do 'best-effort' attempt to perform cancellation.This method returns immediately and if the cancellation is successful the cancelled operation will throw java.util.concurrent.CancellationException. | |
cancelAfter | Schedules a cancel operation on this CancellationTokenSource after the specified time span. | |
close | Closes the resource and performs cleanup operations. | |
getToken | Returns a token associated with this CancellationTokenSource. |