InterruptionTokenSource

InterruptionTokenSource class

Represents the source of InterruptionToken.

InterruptionTokenSource

NameDescription
InterruptionTokenSource()Creates a new InterruptionTokenSource.

Result: InterruptionTokenSource


getToken

NameDescription
getToken ()Returns new token binded to this InterruptionTokenSource.

Result: InterruptionToken


interrupt

NameDescription
interrupt ()Initialize request for interruption.

isInterruptionRequested

NameDescription
isInterruptionRequested ()Returns true if interruption requested, false otherwise.

Result: boolean