CancellationTokenSource
Leave feedback
On this page
Inheritance: java.lang.Object
All Implemented Interfaces: java.lang.AutoCloseable
public final class CancellationTokenSource implements AutoCloseable
Signals to a CancellationToken that an operation should be canceled.
| Constructor | Description |
|---|---|
| CancellationTokenSource() |
| Method | Description |
|---|---|
| getToken() | |
| cancel() | |
| isCancellationRequested() | |
| close() |
public CancellationTokenSource()
public CancellationToken getToken()
Returns: CancellationToken
public void cancel()
public boolean isCancellationRequested()
Returns: boolean
public void close()
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.