Initializerswift-nio 2.72.0NIOConcurrencyHelpers
init(value:)
atomics.swift:480This declaration is deprecated: AtomicBox is deprecated without replacement because the original implementation doesn't work.
init(value: T)
Other members in extension
Instance members
Show obsolete interfaces (4)
Hide obsolete interfaces
func compareAndExchange(expected: T, desired: T
) -> Bool Atomically compares the value against
expected
and, if they are equal, replaces the value withdesired
.func exchange(with: T
) -> T Atomically exchanges
value
for the current value of this object.func load(
) -> T Atomically loads and returns the value of this object.
func store(T
) Atomically replaces the value of this object with
value
.