
**Inheritance:**
java.lang.Object
```
public class CancellationToken
```

Propagates notification that operations should be canceled.
## Methods

| Method | Description |
| --- | --- |
| [isCancellationRequested()](#isCancellationRequested--) | Gets whether cancellation has been requested for this token. |
### isCancellationRequested() {#isCancellationRequested--}
```
public boolean isCancellationRequested()
```


Gets whether cancellation has been requested for this token.

**Returns:**
boolean - true, if cancellation for the underlying `CancellationTokenSource` has been requested; false otherwise.
