Commit Graph

4 Commits

Author SHA1 Message Date
Michael Gasch 804dcc49a7
Return context.Canceled error in pkg/signals (#1857)
Return a typed `context.Canceled` error following the context package
semantic.

Closes: #1854

Might break existing users if they rely on the current error string
being returned with string matching, which is unlikely though.

Signed-off-by: Michael Gasch <mgasch@vmware.com>
2020-10-28 04:44:34 -07:00
Victor Agababov 74c5d67ea0 Fix the issues pointed out by staticcheck (#541)
* Fix the issues pointed out by staticcheck

* review fix
2019-07-23 13:13:36 -07:00
Matt Moore 365d80ec5b Add a new method to wrap the signal channel in a context. (#420)
* Add a new method to wrap the signal channel in a context.

* Adjust the Deadline and Err implementations based on feedback.
2019-05-24 06:35:28 -07:00
Matt Moore d6c701b0b1 Copy pkg/signals verbatim from Serving. (#25) 2018-07-30 13:05:36 -07:00