---
title: value
framework: swift
role: symbol
role_heading: Instance Property
path: swift/task/value-60t02
---

# value

The result from a throwing task, after it completes.

## Declaration

```swift
var value: Success { get async throws }
```

## Return Value

Return Value The task’s result.

## Discussion

Discussion If the task hasn’t completed, accessing this property waits for it to complete and its priority increases to that of the current task. Note that this might not be as effective as creating the task with the correct priority, depending on the executor’s scheduling details. If the task throws an error, this property propagates that error. Tasks that respond to cancellation by throwing CancellationError have that error propagated here upon cancellation.

## See Also

### Accessing Results

- [value](swift/task/value-40dtq.md)
- [result](swift/task/result.md)
