# DurableTaskReferenceAwaiter&lt;TResult&gt;

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

[Source](https://github.com/dotnet/orleans/blob/6a0e937f544c35ffcf11b37e4c2b7de5a1580a03/src/Orleans.Durable/DurableTasks/DurableTaskReference.cs#L137)

```csharp
public readonly struct DurableTaskReferenceAwaiter<TResult> : ICriticalNotifyCompletion, INotifyCompletion
```

Awaits a `Orleans.Durable.Tasks.DurableTaskReference-1`: as a subscribed child in a durable execution, and otherwise by waiting for the task's result.

## Type parameters

- `TResult`: The task's result type.

## Properties

- [IsCompleted](/orleans/docs/api/csharp/microsoft.orleans.durable/orleans.durable.tasks.durabletaskreferenceawaiter-1/properties/iscompleted-4da078de/)

## Methods

- [GetResult](/orleans/docs/api/csharp/microsoft.orleans.durable/orleans.durable.tasks.durabletaskreferenceawaiter-1/methods/getresult-53e57952/)
- [OnCompleted(Action)](/orleans/docs/api/csharp/microsoft.orleans.durable/orleans.durable.tasks.durabletaskreferenceawaiter-1/methods/oncompleted-system-action-d4b3eff1/)
- [UnsafeOnCompleted(Action)](/orleans/docs/api/csharp/microsoft.orleans.durable/orleans.durable.tasks.durabletaskreferenceawaiter-1/methods/unsafeoncompleted-system-action-423e3dab/)
