crossbeam icon indicating copy to clipboard operation
crossbeam copied to clipboard

fixes #946 -- return both the old and new values in `Atomic::compare_exchange`

Open alex opened this issue 6 months ago • 2 comments

alex avatar Jun 08 '25 19:06 alex

I decided returning both made more sense than trying to just mirror the stdlib's API, because of the extreme risk existing code wouldn't notice the behavior change unless types also changed.

alex avatar Jun 08 '25 19:06 alex

the CI failures appear to be the ones fixed by #1196. I can rebase after that merges.

alex avatar Jun 08 '25 19:06 alex