Skip to content
This repository has been archived by the owner on Jun 12, 2024. It is now read-only.

feat: add contexts package to simplify signal handling #204

Merged
merged 1 commit into from
Jan 9, 2022

Conversation

LucasRoesler
Copy link
Member

Add a contexts package that exposes a WithSignals method. This creates a
context that is bound to the passed signals. If no signals are passed,
then it binds to the os.Interrupt by default.

Signed-off-by: Lucas Roesler roesler.lucas@gmail.com

Add a contexts package that exposes a WithSignals method. This creates a
context that is bound to the passed signals. If no signals are passed,
then it binds to the os.Interrupt by default.

Signed-off-by: Lucas Roesler <roesler.lucas@gmail.com>
@LucasRoesler LucasRoesler self-assigned this Jan 9, 2022
@LucasRoesler LucasRoesler merged commit 36a26ca into main Jan 9, 2022
@LucasRoesler LucasRoesler deleted the feat-add-context-helper-pkg branch January 9, 2022 10:45
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant