# DurableTaskExtensions.ScheduleAsync(DurableTask, CancellationToken)

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

[Source](https://github.com/dotnet/orleans/blob/6a0e937f544c35ffcf11b37e4c2b7de5a1580a03/src/Orleans.Durable.Abstractions/DurableTaskExtensions.cs)

```csharp
public static Task<ScheduledTask> ScheduleAsync(this DurableTask task, CancellationToken cancellationToken = default(CancellationToken))
```

Starts the task and returns its handle once the task's host has accepted and durably stored the task.

### Parameters

- `task` (`DurableTask`): A token which abandons the start. It doesn't cancel the task.
- `cancellationToken` (`CancellationToken`)

### Returns

The task's handle, whose [ScheduledTask](/orleans/docs/api/csharp/microsoft.orleans.durable.abstractions/orleans.durable.tasks.scheduledtask/) addresses the task.
