Skip to content

Conversation

@tomas-zijdemans
Copy link
Contributor

@tomas-zijdemans tomas-zijdemans commented Jan 6, 2026

Add optional AbortSignal to CircuitBreaker.execute() for pre-flight abort checking. This enables timeout and graceful shutdown scenarios when composing with other async functions.

Aborts do not count as circuit failures. Update JSDoc examples to show realistic usage patterns

@tomas-zijdemans tomas-zijdemans requested a review from kt3k as a code owner January 6, 2026 09:04
@github-actions github-actions bot added the async label Jan 6, 2026
@codecov
Copy link

codecov bot commented Jan 6, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.30%. Comparing base (6b93b78) to head (91eebbd).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6940      +/-   ##
==========================================
+ Coverage   94.28%   94.30%   +0.01%     
==========================================
  Files         584      584              
  Lines       43186    43188       +2     
  Branches     6933     6934       +1     
==========================================
+ Hits        40720    40727       +7     
+ Misses       2413     2409       -4     
+ Partials       53       52       -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.

@tomas-zijdemans tomas-zijdemans force-pushed the feat/circuit-breaker-abort-signal branch from 93cce4f to 5a39d1a Compare January 7, 2026 07:47
Add optional AbortSignal to CircuitBreaker.execute() for pre-flight
abort checking. This enables timeout and graceful shutdown scenarios
when composing with other async primitives like retry().

- Add CircuitBreakerExecuteOptions interface with signal property
- Check signal.throwIfAborted() before executing the function
- Aborts do not count as circuit failures
- Update JSDoc examples to show realistic usage patterns
@tomas-zijdemans tomas-zijdemans force-pushed the feat/circuit-breaker-abort-signal branch from 5a39d1a to 91eebbd Compare January 8, 2026 08:16
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