Skip to content

DurableTask.Run(Func<CancellationToken, TResult>)

Run(Func<CancellationToken, TResult>)

static
View source
public static DurableTask<TResult> Run<TResult>(Func<CancellationToken, TResult> function)
Creates an unstarted step which runs function as a child execution when it is awaited, scheduled, or posted.

Parameters

functionFunc<CancellationToken, TResult>