Language

AsyncHelpers.UnsafeAwaitAwaiter<TAwaiter>(TAwaiter) Method

Definition

Note

To use this preview API, you must enable preview features in your project by setting the EnablePreviewFeatures property to True in your project file. For more information, see https://aka.ms/dotnet-preview-features.

Awaits the specified awaiter using unsafe continuation registration and returns when the awaiter has completed.

public:
generic <typename TAwaiter>
 where TAwaiter : System::Runtime::CompilerServices::ICriticalNotifyCompletion static void UnsafeAwaitAwaiter(TAwaiter awaiter);
[System.Runtime.Versioning.RequiresPreviewFeatures]
public static void UnsafeAwaitAwaiter<TAwaiter>(TAwaiter awaiter) where TAwaiter : System.Runtime.CompilerServices.ICriticalNotifyCompletion;
public static void UnsafeAwaitAwaiter<TAwaiter>(TAwaiter awaiter) where TAwaiter : System.Runtime.CompilerServices.ICriticalNotifyCompletion;
[<System.Runtime.Versioning.RequiresPreviewFeatures>]
static member UnsafeAwaitAwaiter : 'Awaiter -> unit (requires 'Awaiter :> System.Runtime.CompilerServices.ICriticalNotifyCompletion)
static member UnsafeAwaitAwaiter : 'Awaiter -> unit (requires 'Awaiter :> System.Runtime.CompilerServices.ICriticalNotifyCompletion)
Public Shared Sub UnsafeAwaitAwaiter(Of TAwaiter As ICriticalNotifyCompletion) (awaiter As TAwaiter)

Type Parameters

TAwaiter

The awaiter type.

Parameters

awaiter
TAwaiter

The awaiter to await.

Attributes

Remarks

This member supports .NET infrastructure and is not intended to be used directly from your code.

Applies to