atomicExchange import { atomicExchange } from "destack:sync"; Atomic exchange. Atomically replaces the value at ptr with value. Returns the previous value. export declare function atomicExchange(ptr: *T, value: T, order: MemoryOrdering, scope: AtomicScope, memoryScope: MemoryScope, regions: MemoryRegionSet, isVolatile: boolean, isMakeAvailable: boolean, isMakeVisible: boolean): T language/library/src/sync/atomic.ds:271:281