ManualResetValueTaskSourceCore<TResult>.OnCompleted 方法

定义

计划此操作的延续操作。

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)

参数

continuation
Action<Object>

操作完成后要调用的延续。

state
Object

调用时要传递给 continuation 的状态对象。

token
Int16

提供给 ValueTask构造函数的不透明值。

flags
ValueTaskSourceOnCompletedFlags

描述延续行为的标志。

适用于