Skip to content

ResponseCompletionSource<TResult>.OnCompleted(Action<object>, object, short, ValueTaskSourceOnCompletedFlags)

OnCompleted(Action<object>, object, short, ValueTaskSourceOnCompletedFlags)

View source
public void OnCompleted(Action<object> continuation, object state, short token, ValueTaskSourceOnCompletedFlags flags)
Schedules the continuation action for this System.Threading.Tasks.Sources.IValueTaskSource.

Parameters

continuationAction<object>
The continuation to invoke when the operation has completed.
stateobject
The state object to pass to continuation when it's invoked.
tokenshort
An opaque value that was provided to the System.Threading.Tasks.ValueTask constructor.
flagsValueTaskSourceOnCompletedFlags
The flags describing the behavior of the continuation.