ConfiguredTaskAwaitable.ConfiguredTaskAwaiter.OnCompleted(Action) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Samarbeta med oss på GitHub
Källan för det här innehållet finns på GitHub, där du även kan skapa och granska ärenden och pull-begäranden. Se vår deltagarguide för mer information.