InterruptionTokenSource

InterruptionTokenSource class

Represents the source of InterruptionToken.

public class InterruptionTokenSource : IInterruptionTokenSource

Constructors

Name Description
InterruptionTokenSource() Creates a new InterruptionTokenSource.

Properties

Name Description
IsInterruptionRequested { get; } Returns true if interruption requested, false otherwise.
Token { get; } Returns new token binded to this InterruptionTokenSource.

Methods

Name Description
Interrupt() Intialize request for interruption.

See Also