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 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

| Improve this Doc View Source

ConfigureAwait(Boolean)

Configures an awaiter used to await this task.

Declaration
public DynamicTaskAwaitable ConfigureAwait(bool continueOnCapturedContext)
Parameters
Type Name Description
Boolean 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.

| Improve this Doc 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

Sequence.Skip<TEnumerator, T>(ref TEnumerator, Int32)
ExpressionBuilder.Const<T>(T)
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX