CakeTaskExtensions.

AddDelayedAction(CakeTask, Func<ICakeContext, Task>) Method

Summary

Adds the asynchronous action to the task's delayed actions.
Namespace
Cake.Core
Containing Type
CakeTaskExtensions

Syntax

public static void AddDelayedAction(this CakeTask task, Func<ICakeContext, Task> action)

Examples

task.AddDelayedAction(async context =>
{
    await System.Threading.Tasks.Task.Delay(100);
    context.Log.Information("Expanding items");
});

Parameters

Name Type Description
task CakeTask The task.
action Func<ICakeContext, Task> The action.

Return Value

Type Description
void