InterruptionTokenSource

InterruptionTokenSource class

Represents the source of InterruptionToken.

public class InterruptionTokenSource : IInterruptionTokenSource

Constructors

NameDescription
InterruptionTokenSource()Creates a new InterruptionTokenSource.

Properties

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

Methods

NameDescription
Interrupt()Intialize request for interruption.

See Also