---
title: "load(ordering:)"
framework: synchronization
role: symbol
role_heading: Instance Method
path: "synchronization/atomic/load(ordering:)-4mv5b"
---

# load(ordering:)

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

## Declaration

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

## Parameters

- `ordering`: The memory ordering to apply on this operation.

## Return Value

Return Value The current value.
