<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -",
    "macOS: 15.0.0 -",
    "tvOS: 18.0.0 -",
    "visionOS: 2.0.0 -",
    "watchOS: 11.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Swift",
  "identifier" : "/documentation/Synchronization/Atomic/load(ordering:)-8ufx2",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Synchronization"
    ],
    "preciseIdentifier" : "s:15Synchronization6AtomicVA2A19_Atomic32BitStorageV0B14RepresentationRtzrlE4load8orderingxAA0B12LoadOrderingV_tF"
  },
  "title" : "load(ordering:)"
}
-->

# load(ordering:)

Atomically loads and returns the current value, applying the specified
memory ordering.

```
func load(ordering: AtomicLoadOrdering) -> Value
```

## Parameters

`ordering`

The memory ordering to apply on this operation.

## Return Value

The current value.

---

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)