nomicon icon indicating copy to clipboard operation
nomicon copied to clipboard

example uses deprecated `compare_and_swap`

Open amab8901 opened this issue 2 years ago • 0 comments

This page says: while lock.compare_and_swap(false, true, Ordering::Acquire) { }

The problem: pub fn compare_and_swap (&self, current: bool, new: bool, order: Ordering) -> [bool] is deprecated.

Request: update the example to make it applicable for latest version of Rust

amab8901 avatar Oct 20 '22 13:10 amab8901