InterruptionTokenSource class

InterruptionTokenSource class

Represents the source of InterruptionToken.

The InterruptionTokenSource type exposes the following members:

Constructors

ConstructorDescription
__init__(self)Creates a new InterruptionTokenSource.

Properties

PropertyDescription
tokenReturns new token binded to this InterruptionTokenSource.
is_interruption_requestedReturns true if interruption requested, false otherwise.

Methods

MethodDescription
interrupt(self)Intialize request for interruption.

See Also