TplExtensions.NoThrowTaskAwaiter Struct

Definition

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

C++
public: value class TplExtensions::NoThrowTaskAwaiter : System::Runtime::CompilerServices::INotifyCompletion
C++
public: value class TplExtensions::NoThrowTaskAwaiter : System::Runtime::CompilerServices::ICriticalNotifyCompletion
Inheritance
TplExtensions.NoThrowTaskAwaiter
Attributes
Implements

Constructors

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

Product Versions
Visual Studio SDK 2015, 2017, 2019, 2022

Thread Safety

This type is thread-safe for all members.