Struct DynamicTaskAwaitable
Represents dynamically-typed task.
Inherited Members
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 SourceConfigureAwait(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. |
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. |
GetAwaiter()
Gets an awaiter used to await this task.
Declaration
public DynamicTaskAwaitable.Awaiter GetAwaiter()
Returns
Type | Description |
---|---|
DynamicTaskAwaitable.Awaiter | An awaiter instance. |