Langue

TplExtensions.NoThrowValueTaskAwaiter<TResult> 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<TResult> : System.Runtime.CompilerServices.ICriticalNotifyCompletion
[<System.Runtime.CompilerServices.IsReadOnly>]
type TplExtensions.NoThrowValueTaskAwaiter<'Result> = struct
    interface ICriticalNotifyCompletion
    interface INotifyCompletion
Public Structure TplExtensions.NoThrowValueTaskAwaiter(Of TResult)
Implements ICriticalNotifyCompletion

Paramètres de type

TResult

Type du résultat.

Héritage
TplExtensions.NoThrowValueTaskAwaiter<TResult>
Attributs
Implémente

Constructeurs

Nom Description
TplExtensions.NoThrowValueTaskAwaiter<TResult>(ValueTask<TResult>, Boolean)

Initialise une nouvelle instance du TplExtensions.NoThrowValueTaskAwaiter<TResult> 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 à