Show / Hide Table of Contents

Class DelayedTask

Represents a task with delayed completion.

Inheritance
object
DelayedTask
DelayedTask<TResult>
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: DotNext.Threading.Tasks
Assembly: DotNext.Threading.dll
Syntax
public abstract class DelayedTask

Properties

View Source

Task

Gets delayed task.

Declaration
public abstract Task Task { get; }
Property Value
Type Description
Task
See Also
DelayedTaskCanceledException

Methods

View Source

Cancel()

Cancels scheduled task.

Declaration
public void Cancel()
View Source

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.

View Source

GetAwaiter()

Gets an awaiter used to await this task.

Declaration
public TaskAwaiter GetAwaiter()
Returns
Type Description
TaskAwaiter

An awaiter instance.

Extension Methods

BasicExtensions.As<T>(T)
BasicExtensions.IsBetween<T, TLowerBound, TUpperBound>(T, TLowerBound, TUpperBound)
BasicExtensions.IsOneOf<T>(T, params ReadOnlySpan<T>)
  • View Source
☀
☾
In this article
Back to top
Supported by the .NET Foundation
☀
☾