AsyncSerialExecutor.AddNext(Func<Task>) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Submits the next function for execution. It will execute after all previously submitted functions have finished, without interleaving their executions. Returns a promise that represents the execution of this given function. The returned promise will be resolved when the given function is done executing.
public System.Threading.Tasks.Task AddNext (Func<System.Threading.Tasks.Task> func);
member this.AddNext : Func<System.Threading.Tasks.Task> -> System.Threading.Tasks.Task
Public Function AddNext (func As Func(Of Task)) As Task
Parameters
Returns
The result of the scheduled function invocation.