Partilhar via


AwaitExtensions.ConfigureAwaitRunInline Method

Definition

Overloads

ConfigureAwaitRunInline(Task)

Gets an awaitable that schedules the continuation with a preference to executing synchronously on the callstack that completed the Task, without regard to thread ID or any SynchronizationContext that may be applied when the continuation is scheduled or when the antecedent completes.

ConfigureAwaitRunInline<T>(Task<T>)

Gets an awaitable that schedules the continuation with a preference to executing synchronously on the callstack that completed the Task, without regard to thread ID or any SynchronizationContext that may be applied when the continuation is scheduled or when the antecedent completes.

ConfigureAwaitRunInline(Task)

Gets an awaitable that schedules the continuation with a preference to executing synchronously on the callstack that completed the Task, without regard to thread ID or any SynchronizationContext that may be applied when the continuation is scheduled or when the antecedent completes.

public static Microsoft.VisualStudio.Threading.AwaitExtensions.ExecuteContinuationSynchronouslyAwaitable ConfigureAwaitRunInline (this System.Threading.Tasks.Task antecedent);
static member ConfigureAwaitRunInline : System.Threading.Tasks.Task -> Microsoft.VisualStudio.Threading.AwaitExtensions.ExecuteContinuationSynchronouslyAwaitable
<Extension()>
Public Function ConfigureAwaitRunInline (antecedent As Task) As AwaitExtensions.ExecuteContinuationSynchronouslyAwaitable

Parameters

antecedent
Task

The task to await on.

Returns

An awaitable.

Remarks

If there is not enough stack space remaining on the thread that is completing the antecedentTask, the continuation may be scheduled on the threadpool.

Applies to

ConfigureAwaitRunInline<T>(Task<T>)

Gets an awaitable that schedules the continuation with a preference to executing synchronously on the callstack that completed the Task, without regard to thread ID or any SynchronizationContext that may be applied when the continuation is scheduled or when the antecedent completes.

public static Microsoft.VisualStudio.Threading.AwaitExtensions.ExecuteContinuationSynchronouslyAwaitable<T> ConfigureAwaitRunInline<T> (this System.Threading.Tasks.Task<T> antecedent);
static member ConfigureAwaitRunInline : System.Threading.Tasks.Task<'T> -> Microsoft.VisualStudio.Threading.AwaitExtensions.ExecuteContinuationSynchronouslyAwaitable<'T>
<Extension()>
Public Function ConfigureAwaitRunInline(Of T) (antecedent As Task(Of T)) As AwaitExtensions.ExecuteContinuationSynchronouslyAwaitable(Of T)

Type Parameters

T

The type of value returned by the awaited Task.

Parameters

antecedent
Task<T>

The task to await on.

Returns

An awaitable.

Remarks

If there is not enough stack space remaining on the thread that is completing the antecedentTask, the continuation may be scheduled on the threadpool.

Applies to