Redigera

Dela via


TaskAwaiter.UnsafeOnCompleted(Action) Method

Definition

Schedules the continuation action for the asynchronous task that is associated with this awaiter.

This API supports the product infrastructure and is not intended to be used directly from your code.

public:
 virtual void UnsafeOnCompleted(Action ^ continuation);
[System.Security.SecurityCritical]
public void UnsafeOnCompleted (Action continuation);
public void UnsafeOnCompleted (Action continuation);
[<System.Security.SecurityCritical>]
abstract member UnsafeOnCompleted : Action -> unit
override this.UnsafeOnCompleted : Action -> unit
abstract member UnsafeOnCompleted : Action -> unit
override this.UnsafeOnCompleted : Action -> unit
Public Sub UnsafeOnCompleted (continuation As Action)

Parameters

continuation
Action

The action to invoke when the await operation completes.

Implements

Attributes

Exceptions

continuation is null.

The awaiter was not properly initialized.

Remarks

This method is intended for compiler user rather than use directly in code.

Applies to