Share via


TaskExtensions.CultureAwaiter<T> Struct

Definition

Provides an awaitable object that allows for awaits on Task<TResult> that preserve the culture.

[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1815:OverrideEqualsAndOperatorEqualsOnValueTypes")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId="Awaiter")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1034:NestedTypesShouldNotBeVisible")]
public struct TaskExtensions.CultureAwaiter<T> : System.Runtime.CompilerServices.ICriticalNotifyCompletion
type TaskExtensions.CultureAwaiter<'T> = struct
    interface ICriticalNotifyCompletion
    interface INotifyCompletion
Public Structure TaskExtensions.CultureAwaiter(Of T)
Implements ICriticalNotifyCompletion

Type Parameters

T

The type of the result produced by the associated Task<TResult>.

Inheritance
TaskExtensions.CultureAwaiter<T>
Attributes
Implements

Remarks

This type is intended for compiler use only.

Constructors

TaskExtensions.CultureAwaiter<T>(Task<T>)

Constructs a new instance of the TaskExtensions.CultureAwaiter<T> class.

Properties

IsCompleted

Gets whether this Task has completed.

Methods

GetAwaiter()

Gets an awaiter used to await this Task<TResult>.

GetResult()

Ends the await on the completed Task<TResult>.

OnCompleted(Action)

This method is not implemented and should not be called.

UnsafeOnCompleted(Action)

Schedules the continuation onto the Task<TResult> associated with this TaskAwaiter<TResult>.

Applies to