<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Swift",
  "identifier" : "/documentation/Swift/Task/value-60t02",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Swift"
    ],
    "preciseIdentifier" : "s:ScT5valuexvp"
  },
  "title" : "value"
}
-->

# value

The result from a throwing task, after it completes.

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

## Return Value

The task’s result.

## 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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)