AwaitExtensions.ConfigureAwaitRunInline Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 antecedent
Task, 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 antecedent
Task, the continuation may be scheduled on the threadpool.