# IDurableTaskCompletionSource&lt;T&gt;.TrySetResult(T)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.durable/orleans.durable.journaling.idurabletaskcompletionsource-1/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.durable/orleans.durable.journaling.idurabletaskcompletionsource-1/methods/)

```csharp
public abstract bool TrySetResult(T value)
```

Attempts to transition the durable state to completed with the specified result.

### Parameters

- `value` (`T`): The task result.

### Returns

`true` if the state was transitioned; otherwise, `false`.
