InterruptionTokenSource
InterruptionTokenSource class
Represents the source of InterruptionToken.
InterruptionTokenSource
| Name | Description |
|---|---|
| InterruptionTokenSource() | Creates a new InterruptionTokenSource. |
Returns: InterruptionTokenSource
getToken
| Name | Description |
|---|---|
| getToken () | Returns new token binded to this InterruptionTokenSource. |
Returns: InterruptionToken
interrupt
| Name | Description |
|---|---|
| interrupt () | Initialize request for interruption. |
Returns: void
isInterruptionRequested
| Name | Description |
|---|---|
| isInterruptionRequested () | Returns true if interruption requested, false otherwise. |
Returns: boolean