ConfiguredTaskAwaitable.ConfiguredTaskAwaiter.UnsafeOnCompleted 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 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
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.