IValueTaskSource.OnCompleted Method

Definition

Schedules the continuation action for this IValueTaskSource.

C#
public void OnCompleted(Action<object?> continuation, object? state, short token, System.Threading.Tasks.Sources.ValueTaskSourceOnCompletedFlags flags);
C#
public void OnCompleted(Action<object> continuation, object state, short token, System.Threading.Tasks.Sources.ValueTaskSourceOnCompletedFlags flags);

Parameters

continuation
Action<Object>

The continuation to invoke when the operation has completed.

state
Object

The state object to pass to continuation when it's invoked.

token
Int16

An opaque value that was provided to the ValueTask's constructor.

flags
ValueTaskSourceOnCompletedFlags

The flags describing the behavior of the continuation.

Applies to

Product Versions
.NET Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Standard 2.0 (package-provided), 2.1