共用方式為


ValueTaskAwaiter<TResult>.OnCompleted(Action) 方法

定義

排程此 ValueTask<TResult> 的接續動作。

public:
 virtual void OnCompleted(Action ^ continuation);
public void OnCompleted (Action continuation);
abstract member OnCompleted : Action -> unit
override this.OnCompleted : Action -> unit
Public Sub OnCompleted (continuation As Action)

參數

continuation
Action

等候作業完成時要執行的動作。

實作

適用於