# DurableTask.Run(Action&lt;CancellationToken&gt;)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.durable.abstractions/orleans.durable.tasks.durabletask/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.durable.abstractions/orleans.durable.tasks.durabletask/methods/)

[Source](https://github.com/dotnet/orleans/blob/6a0e937f544c35ffcf11b37e4c2b7de5a1580a03/src/Orleans.Durable.Abstractions/DurableTask.cs#L40-L41)

```csharp
public static DurableTask Run(Action<CancellationToken> action)
```

Creates an unstarted step which runs `action` as a child execution when it is awaited, scheduled, or posted.

### Parameters

- `action` (`Action<CancellationToken>`)
