Langue

TplExtensions.NoThrowValueTaskAwaiter Structure

Définition

Un awaiter qui encapsule une tâche et ne lève jamais d’exception en cas d’attente.

[System.Runtime.CompilerServices.IsReadOnly]
public readonly struct TplExtensions.NoThrowValueTaskAwaiter : System.Runtime.CompilerServices.ICriticalNotifyCompletion
[<System.Runtime.CompilerServices.IsReadOnly>]
type TplExtensions.NoThrowValueTaskAwaiter = struct
    interface ICriticalNotifyCompletion
    interface INotifyCompletion
Public Structure TplExtensions.NoThrowValueTaskAwaiter
Implements ICriticalNotifyCompletion
Héritage
TplExtensions.NoThrowValueTaskAwaiter
Attributs
Implémente

Constructeurs

Nom Description
TplExtensions.NoThrowValueTaskAwaiter(ValueTask, Boolean)

Initialise une nouvelle instance du TplExtensions.NoThrowValueTaskAwaiter struct.

Propriétés

Nom Description
IsCompleted

Obtient une valeur indiquant si la tâche est terminée.

Méthodes

Nom Description
GetResult()

Ne fait rien.

OnCompleted(Action)

Planifie un délégué pour l’exécution à la fin de l’exécution d’une tâche.

UnsafeOnCompleted(Action)

Planifie un délégué pour l’exécution à la fin de l’exécution d’une tâche sans capturer executionContext.

S’applique à