Partager via


TplExtensions.NoThrowTaskAwaiter Struct

Definition

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

public: value class TplExtensions::NoThrowTaskAwaiter : System::Runtime::CompilerServices::INotifyCompletion
public: value class TplExtensions::NoThrowTaskAwaiter : System::Runtime::CompilerServices::ICriticalNotifyCompletion
public struct TplExtensions.NoThrowTaskAwaiter : System.Runtime.CompilerServices.INotifyCompletion
public struct TplExtensions.NoThrowTaskAwaiter : System.Runtime.CompilerServices.ICriticalNotifyCompletion
[System.Runtime.CompilerServices.IsReadOnly]
public readonly struct TplExtensions.NoThrowTaskAwaiter : System.Runtime.CompilerServices.ICriticalNotifyCompletion
type TplExtensions.NoThrowTaskAwaiter = struct
    interface INotifyCompletion
type TplExtensions.NoThrowTaskAwaiter = struct
    interface ICriticalNotifyCompletion
    interface INotifyCompletion
[<System.Runtime.CompilerServices.IsReadOnly>]
type TplExtensions.NoThrowTaskAwaiter = struct
    interface ICriticalNotifyCompletion
    interface INotifyCompletion
Public Structure TplExtensions.NoThrowTaskAwaiter
Implements INotifyCompletion
Public Structure TplExtensions.NoThrowTaskAwaiter
Implements ICriticalNotifyCompletion
Inheritance
TplExtensions.NoThrowTaskAwaiter
Attributes
Implements

Constructors

TplExtensions.NoThrowTaskAwaiter(Task, Boolean)

Initializes a new instance of the TplExtensions.NoThrowTaskAwaiter 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

Thread Safety

This type is thread-safe for all members.