Repository navigation
Signal/Interrupt package - #1392
Conversation
|
One question I have is whether we even need |
|
I added two commits that impl the |
535b728 to
a8d43a6
Compare
a8d43a6 to
d907b63
Compare
Roasbeef
left a comment
There was a problem hiding this comment.
Nice! We'll be able to use this in a few other projects we have in mind.
One question: what's the rationale behind removing the interrupt handlers in favor of using regular defers everywhere?
There was a problem hiding this comment.
Nice addition! Should've been this way all along.
|
Rationale for using defer: the current system executes FIFO order, which is fine since only two functions are registered (one of which is composite, and for the most part, executes |
|
can squash the last two commits if rationale is sound |
|
👍 |
d907b63 to
97aa5c1
Compare
|
squashed commits and rebased on master |
97aa5c1 to
5144df6
Compare
Moves most of the contents in
signal.gointo it's own package namedsignal. This is done in preparation of having standalone watchtowers, so each daemon can share this code.Notable changes:
defer. The handlers inlnd.gohave now been separated, and are registered after eachStart().func() errorinstead offunc(). All of the handlers we use are of this type, so it makes it cleaner even though we don't handle the errors during an interrupt.