Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add WithFailFast() #118

Merged
merged 1 commit into from
Jun 1, 2023
Merged

Add WithFailFast() #118

merged 1 commit into from
Jun 1, 2023

Conversation

camdencheek
Copy link
Member

In #104, a "FailFast" option is likely going to be added to iterators that, on error, stops running additional tasks and returns the error that caused the first failure.

"FailFast" seems is a pretty standard description for this behavior, and combining two common options into a single option with a more discoverable name seems like a nice thing to do before 1.0.

@codecov-commenter
Copy link

Codecov Report

Merging #118 (8880a37) into main (8e5ba59) will increase coverage by 0.01%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #118      +/-   ##
==========================================
+ Coverage   99.30%   99.32%   +0.01%     
==========================================
  Files          12       12              
  Lines         433      442       +9     
==========================================
+ Hits          430      439       +9     
  Misses          3        3              
Impacted Files Coverage Δ
pool/context_pool.go 100.00% <100.00%> (ø)
pool/result_context_pool.go 100.00% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Copy link
Member

@bobheadxi bobheadxi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, LGTM!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants