Show / Hide Table of Contents

Struct DynamicTaskAwaitable

Represents dynamically-typed task.

Inherited Members
ValueType.Equals(object)
ValueType.GetHashCode()
ValueType.ToString()
object.Equals(object, object)
object.GetType()
object.ReferenceEquals(object, object)
Namespace: DotNext.Threading.Tasks
Assembly: DotNext.dll
Syntax
public readonly struct DynamicTaskAwaitable
Remarks

This type is helpful when actual result type of Task<TResult> is not known. Note that this type uses dynamic code compilation via DLR infrastructure.

Methods

| Edit this page View Source

ConfigureAwait(bool)

Configures an awaiter used to await this task.

Declaration
public DynamicTaskAwaitable 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
DynamicTaskAwaitable

An object used to await this task.

| Edit this page View Source

ConfigureAwait(ConfigureAwaitOptions)

Configures an awaiter used to await this task.

Declaration
public DynamicTaskAwaitable ConfigureAwait(ConfigureAwaitOptions options)
Parameters
Type Name Description
ConfigureAwaitOptions options

Options used to configure how awaits on this task are performed.

Returns
Type Description
DynamicTaskAwaitable

Configured awaitable object.

| Edit this page View Source

GetAwaiter()

Gets an awaiter used to await this task.

Declaration
public DynamicTaskAwaitable.Awaiter GetAwaiter()
Returns
Type Description
DynamicTaskAwaitable.Awaiter

An awaiter instance.

Extension Methods

BasicExtensions.IsBetween<T, TLowerBound, TUpperBound>(T, TLowerBound, TUpperBound)
BasicExtensions.IsOneOf<T>(T, ReadOnlySpan<T>)
Collection.ToAsyncEnumerator<TEnumerator, T>(TEnumerator, CancellationToken)
Collection.ToClassicEnumerator<TEnumerator, T>(TEnumerator)
Enumerator.Skip<TEnumerator, T>(ref TEnumerator, int)
ExpressionBuilder.Const<T>(T)
  • Edit this page
  • View Source
☀
☾
In this article
Back to top
Supported by the .NET Foundation
☀
☾