Partager via


TplExtensions.NoThrowTaskAwaitable Struct

Definition

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

public: value class TplExtensions::NoThrowTaskAwaitable
struct TplExtensions::NoThrowTaskAwaitable
public struct TplExtensions.NoThrowTaskAwaitable
[System.Runtime.CompilerServices.IsReadOnly]
public readonly struct TplExtensions.NoThrowTaskAwaitable
type TplExtensions.NoThrowTaskAwaitable = struct
[<System.Runtime.CompilerServices.IsReadOnly>]
type TplExtensions.NoThrowTaskAwaitable = struct
Public Structure TplExtensions.NoThrowTaskAwaitable
Inheritance
TplExtensions.NoThrowTaskAwaitable
Attributes

Constructors

TplExtensions.NoThrowTaskAwaitable(Task, Boolean)

Initializes a new instance of the TplExtensions.NoThrowTaskAwaitable struct.

Methods

GetAwaiter()

Gets the awaiter.

Applies to

Thread Safety

This type is thread-safe for all members.