AddNext(Func<Task>)
public Task AddNext(Func<Task> func) 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.
Parameters
funcFunc<Task>- The function to schedule for invocation.
Returns
The result of the scheduled function invocation.
