Skip to content

DurableTask.Run(Func<CancellationToken, DurableTask>)

Run(Func<CancellationToken, DurableTask>)

static
View source
[System.Obsolete(DurableTask.Run runs a delegate as a durable child, and a durable task already runs as one. Await the durable task directly., True)]
public static DurableTask Run(Func<CancellationToken, DurableTask> function)
Rejects a delegate which returns a durable task, which runs as a durable child when it is awaited.

Parameters

functionFunc<CancellationToken, DurableTask>