Langue

AwaitExtensions.GetAwaiter Méthode

Définition

Surcharges

Nom Description
GetAwaiter(SynchronizationContext)

Obtient un awaiter qui planifie les continuations sur le fichier spécifié SynchronizationContext.

GetAwaiter(TaskScheduler)

Obtient un awaiter qui planifie les continuations sur le planificateur spécifié.

GetAwaiter(WaitHandle)

Fournit des fonctionnalités await pour les s ordinaires WaitHandle.

GetAwaiter(SynchronizationContext)

Obtient un awaiter qui planifie les continuations sur le fichier spécifié SynchronizationContext.

public static Microsoft.VisualStudio.Threading.AwaitExtensions.SynchronizationContextAwaiter GetAwaiter(this System.Threading.SynchronizationContext synchronizationContext);
static member GetAwaiter : System.Threading.SynchronizationContext -> Microsoft.VisualStudio.Threading.AwaitExtensions.SynchronizationContextAwaiter
<Extension()>
Public Function GetAwaiter (synchronizationContext As SynchronizationContext) As AwaitExtensions.SynchronizationContextAwaiter

Paramètres

synchronizationContext
SynchronizationContext

Contexte de synchronisation utilisé pour exécuter des continuations.

Retours

Attendable.

Remarques

L’awaiter retourné entraîne toujours un rendement, même s’il s’exécute déjà dans le fichier spécifié synchronizationContext.

S’applique à

GetAwaiter(TaskScheduler)

Obtient un awaiter qui planifie les continuations sur le planificateur spécifié.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::VisualStudio::Threading::AwaitExtensions::TaskSchedulerAwaiter GetAwaiter(System::Threading::Tasks::TaskScheduler ^ scheduler);
public static Microsoft.VisualStudio.Threading.AwaitExtensions.TaskSchedulerAwaiter GetAwaiter(this System.Threading.Tasks.TaskScheduler scheduler);
static member GetAwaiter : System.Threading.Tasks.TaskScheduler -> Microsoft.VisualStudio.Threading.AwaitExtensions.TaskSchedulerAwaiter
<Extension()>
Public Function GetAwaiter (scheduler As TaskScheduler) As AwaitExtensions.TaskSchedulerAwaiter

Paramètres

scheduler
TaskScheduler

Planificateur de tâches utilisé pour exécuter des continuations.

Retours

Attendable.

S’applique à

GetAwaiter(WaitHandle)

Fournit des fonctionnalités await pour les s ordinaires WaitHandle.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Runtime::CompilerServices::TaskAwaiter GetAwaiter(System::Threading::WaitHandle ^ handle);
public static System.Runtime.CompilerServices.TaskAwaiter GetAwaiter(this System.Threading.WaitHandle handle);
static member GetAwaiter : System.Threading.WaitHandle -> System.Runtime.CompilerServices.TaskAwaiter
<Extension()>
Public Function GetAwaiter (handle As WaitHandle) As TaskAwaiter

Paramètres

handle
WaitHandle

Handle à attendre.

Retours

L’awaiter.

S’applique à