let finish_at = Instant::now() + Duration::from_secs(1);
let number = AtomicUsize::new(0);
(0..10).into_par_iter().for_each(|_| {
while finish_at > Instant::now() {
number.fetch_add(1, Ordering::Relaxed);
}
});
}
SourceHut prohibits anything cryptocurrency- or blockchain-related, so it's less restrictive now, but I didn't like this random opinionated addition to ToS back then and Codeberg felt like a nice alternative.