Add reservation-based methods
- Dominant language
- Rust
- Stars
- 580
- Forks
- 50
- PR merge metrics
- No merged PRs in 30d
Description
Add [`computeIfAbsent`], [`computeIfPresent`], [`compute`]
I have a suspicion that `ReservationNode` could also be used to implement an [`Entry`-API] like the one on `std::collections::HashMap`, so that may be worth looking into.
[`computeIfAbsent`]: https://github.com/jonhoo/flurry/blob/d3dae0465b37b7f12c4f0d58a16f36fb1d8c1596/jsr166/src/ConcurrentHashMap.java#L1662
[`computeIfPresent`]: https://github.com/jonhoo/flurry/blob/d3dae0465b37b7f12c4f0d58a16f36fb1d8c1596/jsr166/src/ConcurrentHashMap.java#L1774
[`compute`]: https://github.com/jonhoo/flurry/blob/62dcd58b5ee47ed8ee51086bb9dc84b2c499fb6c/jsr166/src/ConcurrentHashMap.java#L1868
[`Entry`-API]: https://doc.rust-lang.org/std/collections/struct.HashMap.html#method.entry
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.