Επεξεργασία

Κοινή χρήση μέσω


ConfiguredTaskAwaitable<TResult>.ConfiguredTaskAwaiter.OnCompleted Method

Definition

Schedules the continuation action for the task associated with this awaiter.

public:
 virtual void OnCompleted(Action ^ continuation);
public void OnCompleted (Action continuation);
abstract member OnCompleted : Action -> unit
override this.OnCompleted : Action -> unit
Public Sub OnCompleted (continuation As Action)

Parameters

continuation
Action

The action to invoke when the await operation completes.

Implements

Exceptions

The continuation argument is null.

The awaiter was not properly initialized.

Remarks

This method is intended for compiler use; do not use it directly in your code.

Applies to