Condividi tramite


ManualResetValueTaskSourceCore<TResult>.OnCompleted Metodo

Definizione

Pianifica l'azione di continuazione per questa operazione.

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)

Parametri

continuation
Action<Object>

Continuazione da richiamare al termine dell'operazione.

state
Object

Oggetto di stato da passare a continuation quando viene richiamato.

token
Int16

Valore opaco fornito al costruttore del ValueTask.

flags
ValueTaskSourceOnCompletedFlags

Flag che descrivono il comportamento della continuazione.

Si applica a