# ScheduledTask

Package: [Microsoft.Orleans.Durable.Abstractions](/orleans/docs/api/csharp/microsoft.orleans.durable.abstractions/) 10.0.0-alpha.1

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

```csharp
public abstract class ScheduledTask
```

Represents a host-scheduled durable task.

## Remarks

A handle caches the task's terminal response once a wait, a poll, or a combinator observes it. A terminal response never changes, so [ScheduledTask](/orleans/docs/api/csharp/microsoft.orleans.durable.abstractions/orleans.durable.tasks.scheduledtask/), [ScheduledTask](/orleans/docs/api/csharp/microsoft.orleans.durable.abstractions/orleans.durable.tasks.scheduledtask/), and [ScheduledTask](/orleans/docs/api/csharp/microsoft.orleans.durable.abstractions/orleans.durable.tasks.scheduledtask/) then inspect the task synchronously, without contacting the host.

## Properties

- [Exception](/orleans/docs/api/csharp/microsoft.orleans.durable.abstractions/orleans.durable.tasks.scheduledtask/properties/exception-54a64167/)
- [Id](/orleans/docs/api/csharp/microsoft.orleans.durable.abstractions/orleans.durable.tasks.scheduledtask/properties/id-9e73cceb/)
- [IsCompleted](/orleans/docs/api/csharp/microsoft.orleans.durable.abstractions/orleans.durable.tasks.scheduledtask/properties/iscompleted-d2c9b14d/)
- [Status](/orleans/docs/api/csharp/microsoft.orleans.durable.abstractions/orleans.durable.tasks.scheduledtask/properties/status-44ccafc6/)
- [TargetTaskId](/orleans/docs/api/csharp/microsoft.orleans.durable.abstractions/orleans.durable.tasks.scheduledtask/properties/targettaskid-d7fa77f2/)

## Methods

- [AbortAsync(string, CancellationToken)](/orleans/docs/api/csharp/microsoft.orleans.durable.abstractions/orleans.durable.tasks.scheduledtask/methods/abortasync-string-system-threading-cancellationtoken-eb906763/)
- [AbortAsyncCore(string, CancellationToken)](/orleans/docs/api/csharp/microsoft.orleans.durable.abstractions/orleans.durable.tasks.scheduledtask/methods/abortasynccore-string-system-threading-cancellationtoken-da9ab5e3/)
- [CancelAsync(CancellationToken)](/orleans/docs/api/csharp/microsoft.orleans.durable.abstractions/orleans.durable.tasks.scheduledtask/methods/cancelasync-system-threading-cancellationtoken-4e974282/)
- [CancelAsync(string?, CancellationToken)](/orleans/docs/api/csharp/microsoft.orleans.durable.abstractions/orleans.durable.tasks.scheduledtask/methods/cancelasync-string-nullable-system-threading-cancellationtoken-75c5e1ac/)
- [CancelAsyncCore(string?, CancellationToken)](/orleans/docs/api/csharp/microsoft.orleans.durable.abstractions/orleans.durable.tasks.scheduledtask/methods/cancelasynccore-string-nullable-system-threading-cancellationtoken-7d62358d/)
- [GetAwaiter](/orleans/docs/api/csharp/microsoft.orleans.durable.abstractions/orleans.durable.tasks.scheduledtask/methods/getawaiter-f01bee9f/)
- [GetFeature](/orleans/docs/api/csharp/microsoft.orleans.durable.abstractions/orleans.durable.tasks.scheduledtask/methods/getfeature-1-8b232eb9/)
- [GetResponseAsync(CancellationToken)](/orleans/docs/api/csharp/microsoft.orleans.durable.abstractions/orleans.durable.tasks.scheduledtask/methods/getresponseasync-system-threading-cancellationtoken-2c816b77/)
- [GetResponseAsync(PollingOptions, CancellationToken)](/orleans/docs/api/csharp/microsoft.orleans.durable.abstractions/orleans.durable.tasks.scheduledtask/methods/getresponseasync-orleans-durable-tasks-pollingoptions-system-threading-cancellat-4f22fe00/)
- [GetStatusAsync(PollingOptions, CancellationToken)](/orleans/docs/api/csharp/microsoft.orleans.durable.abstractions/orleans.durable.tasks.scheduledtask/methods/getstatusasync-orleans-durable-tasks-pollingoptions-system-threading-cancellatio-be523c56/)
- [IsCompletedAsync(PollingOptions, CancellationToken)](/orleans/docs/api/csharp/microsoft.orleans.durable.abstractions/orleans.durable.tasks.scheduledtask/methods/iscompletedasync-orleans-durable-tasks-pollingoptions-system-threading-cancellat-59525d3d/)
- [PollAsyncCore(PollingOptions, CancellationToken)](/orleans/docs/api/csharp/microsoft.orleans.durable.abstractions/orleans.durable.tasks.scheduledtask/methods/pollasynccore-orleans-durable-tasks-pollingoptions-system-threading-cancellation-065e3fa0/)
- [Race(IReadOnlyList&lt;ScheduledTask&lt;TResult&gt;&gt;, CancellationToken)](/orleans/docs/api/csharp/microsoft.orleans.durable.abstractions/orleans.durable.tasks.scheduledtask/methods/race-1-system-collections-generic-ireadonlylist-orleans-durable-tasks-scheduledt-e13446ea/)
- [Race(IReadOnlyList&lt;ScheduledTask&gt;, CancellationToken)](/orleans/docs/api/csharp/microsoft.orleans.durable.abstractions/orleans.durable.tasks.scheduledtask/methods/race-system-collections-generic-ireadonlylist-orleans-durable-tasks-scheduledtas-63e0ea29/)
- [WaitAsync(TimeSpan, CancellationToken)](/orleans/docs/api/csharp/microsoft.orleans.durable.abstractions/orleans.durable.tasks.scheduledtask/methods/waitasync-system-timespan-system-threading-cancellationtoken-bb6c3ef4/)
- [WaitAsync(CancellationToken)](/orleans/docs/api/csharp/microsoft.orleans.durable.abstractions/orleans.durable.tasks.scheduledtask/methods/waitasync-system-threading-cancellationtoken-bdb49003/)
- [WaitAsyncCore(CancellationToken)](/orleans/docs/api/csharp/microsoft.orleans.durable.abstractions/orleans.durable.tasks.scheduledtask/methods/waitasynccore-system-threading-cancellationtoken-25bc13a8/)
- [WaitUntilAsync(DateTimeOffset, CancellationToken)](/orleans/docs/api/csharp/microsoft.orleans.durable.abstractions/orleans.durable.tasks.scheduledtask/methods/waituntilasync-system-datetimeoffset-system-threading-cancellationtoken-86654bb5/)
- [WhenAll(IReadOnlyList&lt;ScheduledTask&gt;, CancellationToken)](/orleans/docs/api/csharp/microsoft.orleans.durable.abstractions/orleans.durable.tasks.scheduledtask/methods/whenall-system-collections-generic-ireadonlylist-orleans-durable-tasks-scheduled-9beaba47/)
- [WhenAll(IReadOnlyList&lt;ScheduledTask&lt;TResult&gt;&gt;, CancellationToken)](/orleans/docs/api/csharp/microsoft.orleans.durable.abstractions/orleans.durable.tasks.scheduledtask/methods/whenall-1-system-collections-generic-ireadonlylist-orleans-durable-tasks-schedul-30edefb7/)
- [WhenAllCompleted(IReadOnlyList&lt;ScheduledTask&lt;TResult&gt;&gt;, CancellationToken)](/orleans/docs/api/csharp/microsoft.orleans.durable.abstractions/orleans.durable.tasks.scheduledtask/methods/whenallcompleted-1-system-collections-generic-ireadonlylist-orleans-durable-task-612a47e7/)
- [WhenAllCompleted(IReadOnlyList&lt;ScheduledTask&gt;, CancellationToken)](/orleans/docs/api/csharp/microsoft.orleans.durable.abstractions/orleans.durable.tasks.scheduledtask/methods/whenallcompleted-system-collections-generic-ireadonlylist-orleans-durable-tasks-9b2512c0/)
- [WhenAny(IReadOnlyList&lt;ScheduledTask&lt;TResult&gt;&gt;, CancellationToken)](/orleans/docs/api/csharp/microsoft.orleans.durable.abstractions/orleans.durable.tasks.scheduledtask/methods/whenany-1-system-collections-generic-ireadonlylist-orleans-durable-tasks-schedul-36415011/)
- [WhenAny(IReadOnlyList&lt;ScheduledTask&gt;, CancellationToken)](/orleans/docs/api/csharp/microsoft.orleans.durable.abstractions/orleans.durable.tasks.scheduledtask/methods/whenany-system-collections-generic-ireadonlylist-orleans-durable-tasks-scheduled-6e355960/)
- [WhenEach(IReadOnlyList&lt;ScheduledTask&lt;TResult&gt;&gt;)](/orleans/docs/api/csharp/microsoft.orleans.durable.abstractions/orleans.durable.tasks.scheduledtask/methods/wheneach-1-system-collections-generic-ireadonlylist-orleans-durable-tasks-schedu-9e7f95d7/)
- [WhenEach(IReadOnlyList&lt;ScheduledTask&gt;)](/orleans/docs/api/csharp/microsoft.orleans.durable.abstractions/orleans.durable.tasks.scheduledtask/methods/wheneach-system-collections-generic-ireadonlylist-orleans-durable-tasks-schedule-9d17eabc/)
