InterruptionTokenSource

InterruptionTokenSource class

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

public class InterruptionTokenSource : IDisposable

Constructors

Name Description
InterruptionTokenSource() Creates source

Properties

Name Description
Token { get; } Token used to interrupt long operations

Methods

Name Description
Dispose() Disposes source
Interrupt() Triggers the interruption of operation

See Also