IValueTaskSource.OnCompleted Metodo

Definizione

Pianifica l'azione di continuazione per questo elemento IValueTaskSource.

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);
abstract member 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 chiamare al completamento dell'operazione.

state
Object

L'oggetto stato da passare al parametro continuation quando viene chiamato.

token
Int16

Valore opaco fornito al costruttore di ValueTask.

flags
ValueTaskSourceOnCompletedFlags

Flag che descrivono il comportamento della continuazione.

Si applica a