Skip to content

fix(async/unstable): circuit breaker stale openedAt and duplicate callbacks#7097

Open
tomas-zijdemans wants to merge 5 commits intodenoland:mainfrom
tomas-zijdemans:cb-ready
Open

fix(async/unstable): circuit breaker stale openedAt and duplicate callbacks#7097
tomas-zijdemans wants to merge 5 commits intodenoland:mainfrom
tomas-zijdemans:cb-ready

Conversation

@tomas-zijdemans
Copy link
Copy Markdown
Contributor

  • Fix cooldown timer bypassed when wrapped function is slow
  • Fix duplicate callbacks on concurrent half-open failures
  • Extract tryCall helper to simplify predicate error handling
  • Improve JSDoc and add test for synchronous throws

@github-actions github-actions bot added the async label Apr 14, 2026
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 14, 2026

Codecov Report

❌ Patch coverage is 96.87500% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 94.42%. Comparing base (a3a6ef6) to head (49a5e7c).

Files with missing lines Patch % Lines
async/unstable_circuit_breaker.ts 96.87% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7097      +/-   ##
==========================================
- Coverage   94.43%   94.42%   -0.01%     
==========================================
  Files         630      630              
  Lines       50566    50566              
  Branches     8969     8971       +2     
==========================================
- Hits        47750    47749       -1     
  Misses       2247     2247              
- Partials      569      570       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant