# ScheduledTaskAwaiter&lt;TResult&gt; Methods

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.durable.abstractions/orleans.durable.tasks.scheduledtaskawaiter-1/)

## GetResult {#getresult-c686d6b5}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.durable.abstractions/orleans.durable.tasks.scheduledtaskawaiter-1/methods/getresult-c686d6b5/)

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

```csharp
public TResult GetResult()
```

Returns the successful result.

## OnCompleted(Action) {#oncompleted-system-action-0814c96e}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.durable.abstractions/orleans.durable.tasks.scheduledtaskawaiter-1/methods/oncompleted-system-action-0814c96e/)

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

```csharp
public void OnCompleted(Action continuation)
```

Schedules the continuation action that's invoked when the instance completes.

### Parameters

- `continuation` (`Action`): The action to invoke when the operation completes.

### Exceptions

- `System.ArgumentNullException`: The `continuation` argument is null (Nothing in Visual Basic).

## UnsafeOnCompleted(Action) {#unsafeoncompleted-system-action-595df7c0}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.durable.abstractions/orleans.durable.tasks.scheduledtaskawaiter-1/methods/unsafeoncompleted-system-action-595df7c0/)

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

```csharp
public void UnsafeOnCompleted(Action continuation)
```

Schedules the continuation action that's invoked when the instance completes.

### Parameters

- `continuation` (`Action`): The action to invoke when the operation completes.

### Exceptions

- `System.ArgumentNullException`: The `continuation` argument is null (Nothing in Visual Basic).
