Click or drag to resize
AsyncCancellationToken Structure
Cancellation token for asynchronus operations.

Namespace: PatchKit.Async
Assembly: PatchKit.Async (in PatchKit.Async.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public struct AsyncCancellationToken

The AsyncCancellationToken type exposes the following members.

Properties
  NameDescription
Public propertyIsCancellationRequested
True if cancellation is requested. Otherwise false.
Top
Methods
  NameDescription
Public methodEquals
Indicates whether this instance and a specified object are equal.
(Inherited from ValueType.)
Public methodGetHashCode
Returns the hash code for this instance.
(Inherited from ValueType.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodCode exampleRegister
Registers a callback which executes on cancellation. If token is already cancelled, callback is executed immediately.
Public methodThrowIfCancellationRequested
Throws OperationCanceledException if cancellation is requested.
Public methodToString
Returns the fully qualified type name of this instance.
(Inherited from ValueType.)
Top
Fields
  NameDescription
Public fieldStatic memberNone
Top
See Also