ManualResetValueTaskSourceCore<TResult>.OnCompleted(Action<Object>, Object, Int16, ValueTaskSourceOnCompletedFlags) Método

Definición

Programa la acción de continuación para esta operación.Schedules the continuation action for this operation.

public:
 void OnCompleted(Action<System::Object ^> ^ continuation, System::Object ^ state, short token, System::Threading::Tasks::Sources::ValueTaskSourceOnCompletedFlags flags);
public void OnCompleted (Action<object>? continuation, object state, short token, System.Threading.Tasks.Sources.ValueTaskSourceOnCompletedFlags flags);
public void OnCompleted (Action<object> continuation, object state, short token, System.Threading.Tasks.Sources.ValueTaskSourceOnCompletedFlags flags);
member this.OnCompleted : Action<obj> * obj * int16 * System.Threading.Tasks.Sources.ValueTaskSourceOnCompletedFlags -> unit
Public Sub OnCompleted (continuation As Action(Of Object), state As Object, token As Short, flags As ValueTaskSourceOnCompletedFlags)

Parámetros

continuation
Action<Object>

Continuación que se invocará cuando se haya completado la operación.The continuation to invoke when the operation has completed.

state
Object

Objeto de estado para pasar a continuation cuando se invoque.The state object to pass to continuation when it's invoked.

token
Int16

Valor opaco que se ha proporcionado al constructor de ValueTask.An opaque value that was provided to the ValueTask constructor.

flags
ValueTaskSourceOnCompletedFlags

Marcas que describen el comportamiento de la continuación.The flags describing the behavior of the continuation.

Se aplica a