# atomicLoad

`import { atomicLoad } from "destack:sync";`

Atomic load.

Atomically reads the value at `ptr` with the specified memory ordering.

```ds title="atomicLoad"
export declare function atomicLoad<T>(ptr: *T, order: MemoryOrdering, scope: AtomicScope, memoryScope: MemoryScope, regions: MemoryRegionSet, isVolatile: boolean, isMakeAvailable: boolean, isMakeVisible: boolean): T
```

[language/library/src/sync/atomic.ds:203:212](https://github.com/destack-sh/destack/blob/main/language/library/src/sync/atomic.ds#L203-L212)
