InterruptionTokenSource class

InterruptionTokenSource class

Represents the source of InterruptionToken.

The InterruptionTokenSource type exposes the following members:

Constructors

ConstructorDescription
__init__Creates a new InterruptionTokenSource.

Properties

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

Methods

MethodDescription
interruptIntialize request for interruption.

See Also