load

Atomically loads and returns the value of this object.

atomics.swift:145

This declaration is deprecated: please use UnsafeAtomic from https://github.com/apple/swift-atomics instead

func load() -> T

Returns

The value of this object

This implementation uses a relaxed memory ordering. This guarantees nothing more than that this operation is atomic: there is no guarantee that any other event will be ordered before or after this one.