What does Atomics.add return, and how does that differ from a normal compound assignment on the array element?
const sab = new SharedArrayBuffer(8);
const i32 = new Int32Array(sab);
i32[0] = 5;
const r = Atomics.add(i32, 0, 10);
console.log(r, i32[0]);