CancellationToken
Leave feedback
On this page
Inheritance: java.lang.Object
public final class CancellationToken
Propagates notification that an operation should be canceled.
| Field | Description |
|---|---|
| NONE | A token that is never canceled. |
| Method | Description |
|---|---|
| isCancellationRequested() | |
| throwIfCancellationRequested() | Throws CancellationException if cancellation has been requested. |
public static final CancellationToken NONE
A token that is never canceled.
public boolean isCancellationRequested()
Returns: boolean
public void throwIfCancellationRequested()
Throws CancellationException if cancellation has been requested.
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.