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

Refactor Done() to use a broadcasted Signal type for future features. #984

Merged
merged 25 commits into from
Nov 2, 2022

Conversation

jasonmills
Copy link
Contributor

@jasonmills jasonmills commented Nov 1, 2022

This creates a new public struct type ShutdownSignal and moves broadcast of operating system signals to a standalone type in it's own source file. This allows for the cleaner expansion of signaling features.

@codecov
Copy link

codecov bot commented Nov 1, 2022

Codecov Report

Merging #984 (b0a3917) into master (09bba9b) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master     #984   +/-   ##
=======================================
  Coverage   98.68%   98.69%           
=======================================
  Files          38       39    +1     
  Lines        1596     1608   +12     
=======================================
+ Hits         1575     1587   +12     
  Misses         15       15           
  Partials        6        6           
Impacted Files Coverage Δ
app.go 96.23% <100.00%> (-0.14%) ⬇️
shutdown.go 100.00% <100.00%> (ø)
signal.go 100.00% <100.00%> (ø)

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

@jasonmills jasonmills marked this pull request as ready for review November 1, 2022 20:24
signal.go Outdated Show resolved Hide resolved
signal.go Outdated Show resolved Hide resolved
signal.go Outdated Show resolved Hide resolved
signal.go Outdated Show resolved Hide resolved
signal.go Outdated Show resolved Hide resolved
signal.go Show resolved Hide resolved
signal.go Outdated Show resolved Hide resolved
signal.go Outdated Show resolved Hide resolved
signal.go Outdated Show resolved Hide resolved
signal.go Outdated Show resolved Hide resolved
signal.go Outdated Show resolved Hide resolved
signal.go Outdated Show resolved Hide resolved
signal.go Outdated Show resolved Hide resolved
signal.go Outdated Show resolved Hide resolved
signal_test.go Outdated Show resolved Hide resolved
signal_test.go Outdated Show resolved Hide resolved
signal_test.go Outdated Show resolved Hide resolved
signal_test.go Outdated Show resolved Hide resolved
signal_test.go Outdated Show resolved Hide resolved
Copy link
Collaborator

@abhinav abhinav left a comment

Choose a reason for hiding this comment

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

LGTM with comments.

Please fix those comments before landing/wait for another stamp.

signal.go Outdated Show resolved Hide resolved
signal.go Outdated Show resolved Hide resolved
signal.go Outdated Show resolved Hide resolved
signal.go Outdated Show resolved Hide resolved
signal.go Outdated Show resolved Hide resolved
Copy link
Contributor

@sywhang sywhang left a comment

Choose a reason for hiding this comment

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

👍 LGTM modulo a typo in doc. Please address that before merging.

signal.go Outdated Show resolved Hide resolved
Co-authored-by: Sung Yoon Whang <sungyoonwhang@gmail.com>
@jasonmills jasonmills merged commit fd5fd36 into uber-go:master Nov 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants