InterruptionTokenSource

InterruptionTokenSource class

Represents the source of InterruptionToken.

The InterruptionTokenSource type exposes the following members:

Constructors

Name Description
InterruptionTokenSource() Creates a new InterruptionTokenSource.

Properties

Name Description
token Returns new token binded to this InterruptionTokenSource.
is_interruption_requested Returns true if interruption requested, false otherwise.

Methods

Name Description
interrupt() Intialize request for interruption.

See Also