Method OnCompleted
OnCompleted(Action)
Sets the action to perform when the TaskAwaiter object stops waiting for the asynchronous task to complete.
Declaration
public void OnCompleted(Action continuation)
Parameters
| Type | Name | Description |
|---|---|---|
| Action | continuation | The action to perform when the wait operation completes. |
Implements
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException |
|
| NullReferenceException | The TaskAwaiter object was not properly initialized. |
| InvalidOperationException | The awaiter was not properly initialized. |