Struct CancellationTokenHandle
Assembly: DotNext.Threading.dll
Syntax
public struct CancellationTokenHandle : IDisposable, IEquatable<CancellationTokenHandle>
Constructors
View Source
CancellationTokenHandle(CancellationToken)
Initializes a new handle for the specified cancellation token.
Declaration
public CancellationTokenHandle(CancellationToken token)
Parameters
Properties
View Source
Token
Declaration
public readonly CancellationToken Token { get; }
Property Value
Methods
View Source
Dispose()
Releases memory associated with the handle.
Declaration
View Source
Equals(CancellationTokenHandle)
Declaration
public readonly bool Equals(CancellationTokenHandle other)
Parameters
Returns
View Source
Equals(object)
Declaration
public override readonly bool Equals(object obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
Overrides
View Source
GetHashCode()
Declaration
public override readonly int GetHashCode()
Returns
Overrides
View Source
ToString()
Declaration
public override readonly string ToString()
Returns
Overrides
Operators
View Source
operator ==(CancellationTokenHandle, CancellationTokenHandle)
Declaration
public static bool operator ==(CancellationTokenHandle left, CancellationTokenHandle right)
Parameters
Returns
View Source
operator !=(CancellationTokenHandle, CancellationTokenHandle)
Declaration
public static bool operator !=(CancellationTokenHandle left, CancellationTokenHandle right)
Parameters
Returns
Implements
Extension Methods
See Also