• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

jellydator / ttlcache / 37007232020
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: v3
DEFAULT BRANCH: master
Ran 02 Oct 2026 12:56PM UTC
Jobs 1
Files 4
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

02 Oct 2026 12:31PM UTC coverage: 99.743%. Remained the same
37007232020

Pull #225

github

AdamMagued
fix: prevent race condition between Start and Stop leaving expiry loop running

When Stop() was invoked concurrently with or immediately before go Start(),
Stop() observed c.stopped == true (its initial state from New()) and returned
immediately as a no-op without recording the stop request. When Start()
subsequently ran, it observed c.stopped == true, cleared c.stopped to false,
and entered its expiry loop indefinitely, leaking the goroutine and timer.

Track stopRequested under stopMu so that Stop() records the shutdown request
regardless of whether the loop has initialized, and Start() aborts immediately
if Stop() has already been called.

Fixes #224
Pull Request #225: fix: prevent race condition between Start and Stop leaving expiry loop running

3 of 3 new or added lines in 1 file covered. (100.0%)

777 of 779 relevant lines covered (99.74%)

49.34 hits per line

Jobs
ID Job ID Ran Files Coverage
1 37007232020.1 02 Oct 2026 12:55PM UTC 4
99.74
GitHub Action Run
Source Files on build 37007232020
  • Tree
  • List 4
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #225
  • PR Base - v3 (#34824155627)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc