Share via


TplExtensions.NoThrowValueTaskAwaiter<TResult> Struct

Definition

An awaiter that wraps a task and never throws an exception when waited on.

[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

Type Parameters

TResult

The type of the result.

Inheritance
TplExtensions.NoThrowValueTaskAwaiter<TResult>
Attributes
Implements

Constructors

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

Initializes a new instance of the TplExtensions.NoThrowValueTaskAwaiter<TResult> struct.

Properties

IsCompleted

Gets a value indicating whether the task has completed.

Methods

GetResult()

Does nothing.

OnCompleted(Action)

Schedules a delegate for execution at the conclusion of a task's execution.

UnsafeOnCompleted(Action)

Schedules a delegate for execution at the conclusion of a task's execution without capturing the ExecutionContext.

Applies to