# DurableTaskAwaiter&lt;TResult&gt; Methods

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

## GetResult {#getresult-12025635}

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

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

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

Returns the successful result.

## OnCompleted(Action) {#oncompleted-system-action-95063372}

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

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

```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-e25fdec4}

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

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

```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).
