Sourced from moka's changelog.
Version 0.12.6
Fixed
- Fixed a bug in
future::Cache
that pendingrun_pending_tasks
calls may cause infinite busy loop in an internalschedule_write_op
method (#412[gh-issue-0412]):
- This bug was introduced in
v0.12.0
when the background threads were removed fromfuture::Cache
.- This bug can occur when
run_pending_task
method is called by user code while cache is receiving a very high number of concurrent cache write operations. (e.g.insert
,get_with
,invalidate
etc.)- When it occurs, the
schedule_write_op
method will be spinning in a busy loop forever, causing high CPU usage and all other async tasks to be starved.Changed
- Upgraded
async-lock
crate used byfuture::Cache
fromv2.4
to the latestv3.3
.
1d2af53
Merge pull request #416 from
moka-rs/fix-stacked-borrow-violation7879dde
Fix Miri error (Stacked Borrow violation) in the test code of the timer
wheel2f23e5c
Merge pull request #415 from
moka-rs/avoid-async-scheduler-busy-loopc50d186
Update the changelog6c4f0ac
Bump the version to v0.12.6
8805940
Prevent the busy loop of async schedulersdc960af
Fix typos in comments5996c87
Prevent the busy loop of async schedulers6ba5445
Merge pull request #413 from
moka-rs/fix-ci-2024-04-10/v0.124042c4a
Fix Clippy warnings