IValueTaskSource.OnCompleted 方法

定义

为此 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)

参数

continuation
Action<Object>

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

state
Object

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

token
Int16

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

flags
ValueTaskSourceOnCompletedFlags

描述延续行为的标志。

适用于