Class Scheduler.DelayedTask
Represents a task with delayed completion.
Inherited Members
Namespace: DotNext.Threading
Assembly: DotNext.Threading.dll
Syntax
public abstract class Scheduler.DelayedTask
Properties
| Edit this page View SourceTask
Gets delayed task.
Declaration
public abstract Task Task { get; }
Property Value
Type | Description |
---|---|
Task |
See Also
Methods
| Edit this page View SourceCancel()
Cancels scheduled task.
Declaration
public void Cancel()
ConfigureAwait(bool)
Configures an awaiter used to await this task.
Declaration
public ConfiguredTaskAwaitable ConfigureAwait(bool continueOnCapturedContext)
Parameters
Type | Name | Description |
---|---|---|
bool | continueOnCapturedContext | true to attempt to marshal the continuation back to the original context captured; otherwise, false. |
Returns
Type | Description |
---|---|
ConfiguredTaskAwaitable | An awaiter instance. |
GetAwaiter()
Gets an awaiter used to await this task.
Declaration
public TaskAwaiter GetAwaiter()
Returns
Type | Description |
---|---|
TaskAwaiter | An awaiter instance. |