Class CancellationTokenFuture
Represents cancellation token turned into awaitable future.
Implements
Namespace: DotNext.Runtime.CompilerServices
Assembly: DotNext.Threading.dll
Syntax
public sealed class CancellationTokenFuture : Future<Task>, Future.IAwaiter
  Properties
| Improve this Doc View SourceIsCompleted
Indicates that underlying token is canceled.
Declaration
public override bool IsCompleted { get; }
  Property Value
| Type | Description | 
|---|---|
| Boolean | 
Methods
| Improve this Doc View SourceAsTask()
Converts cancellation token into Task.
Declaration
public override Task AsTask()
  Returns
| Type | Description | 
|---|---|
| Task | The task representing cancellation token.  | 
      
GetAwaiter()
Retrieves awaiter for underlying wait handle.
Declaration
public IAwaiter GetAwaiter()
  Returns
| Type | Description | 
|---|---|
| IAwaiter | The object that is used to monitor the completion of an asynchronous operation.  |