Sun, 12 Jul 2026 11:29:06 +0300
fetch_update renamed to try_update
| Cargo.lock | file | annotate | diff | comparison | revisions | |
| Cargo.toml | file | annotate | diff | comparison | revisions | |
| src/parallelism.rs | file | annotate | diff | comparison | revisions |
--- a/Cargo.lock Fri Jul 10 16:01:10 2026 +0300 +++ b/Cargo.lock Sun Jul 12 11:29:06 2026 +0300 @@ -4,7 +4,7 @@ [[package]] name = "alg_tools" -version = "0.5.1-dev" +version = "0.5.2-dev" dependencies = [ "anyhow", "colored",
--- a/Cargo.toml Fri Jul 10 16:01:10 2026 +0300 +++ b/Cargo.toml Sun Jul 12 11:29:06 2026 +0300 @@ -1,6 +1,6 @@ [package] name = "alg_tools" -version = "0.5.1-dev" +version = "0.5.2-dev" edition = "2021" rust-version = "1.85" authors = ["Tuomo Valkonen <tuomov@iki.fi>"]
--- a/src/parallelism.rs Fri Jul 10 16:01:10 2026 +0300 +++ b/src/parallelism.rs Sun Jul 12 11:29:06 2026 +0300 @@ -212,7 +212,7 @@ Self::SingleThreaded => job(TaskBudget::SingleThreaded), Self::MultiThreaded { scope, budget } => { let spawn = budget - .fetch_update(Release, Relaxed, |n| (n > 1).then_some(n - 1)) + .try_update(Release, Relaxed, |n| (n > 1).then_some(n - 1)) .is_ok(); if spawn { scope.spawn(|scope| {