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 Cancel for canceling context and waiting for cleanup functions at once. #16

Merged
merged 3 commits into from
Feb 7, 2024

Conversation

k1LoW
Copy link
Owner

@k1LoW k1LoW commented Feb 7, 2024

SSIA.

Why not cancel context in Wait(ctx) ?

In the Go programming mindset, canceling a context is "canceling", not "waiting".

@k1LoW k1LoW self-assigned this Feb 7, 2024
@k1LoW k1LoW added the enhancement New feature or request label Feb 7, 2024

This comment has been minimized.

Copy link
Contributor

github-actions bot commented Feb 7, 2024

Code Metrics Report

main (744cceb) #16 (412a432) +/-
Coverage 98.0% 98.4% +0.4%
Code to Test Ratio 1:3.7 1:3.4 -0.3
Test Execution Time 3s 3s 0s
Details
  |                     | main (744cceb) | #16 (412a432) |  +/-  |
  |---------------------|----------------|---------------|-------|
+ | Coverage            |          98.0% |         98.4% | +0.4% |
  |   Files             |              1 |             1 |     0 |
  |   Lines             |             51 |            63 |   +12 |
+ |   Covered           |             50 |            62 |   +12 |
- | Code to Test Ratio  |          1:3.7 |         1:3.4 |  -0.3 |
  |   Code              |            109 |           137 |   +28 |
+ |   Test              |            402 |           469 |   +67 |
  | Test Execution Time |             3s |            3s |    0s |

Code coverage of files in pull request scope (98.0% → 98.4%)

Files Coverage +/-
donegroup.go 98.4% +0.4%

Reported by octocov

@k1LoW k1LoW added the minor label Feb 7, 2024
@k1LoW k1LoW merged commit a25c5bb into main Feb 7, 2024
2 checks passed
@k1LoW k1LoW deleted the cancel-and-wait branch February 7, 2024 03:19
@github-actions github-actions bot mentioned this pull request Feb 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request minor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant