InterruptionTokenSource

InterruptionTokenSource class

Source that provides token used to interrupt long operations and triggers interruption. Must be disposed!

public class InterruptionTokenSource : IDisposable

Constructors

NameDescription
InterruptionTokenSource()Creates source

Properties

NameDescription
Token { get; }Token used to interrupt long operations

Methods

NameDescription
Dispose()Disposes source
Interrupt()Triggers the interruption of operation

See Also