Skip to content

Signal handlers should start a goroutine and take a context #16

@Jacalz

Description

@Jacalz

Checklist

  • I have searched the issue tracker for open issues that relate to the same feature, before opening a new one.
  • This issue only relates to a single feature. I will open new issues for any other features.

Is your feature request related to a problem?

Signal handlers currently block the thread they were call on and do so forever. We need to handle this more gracefully.

Describe the solution you'd like to see.

Make them start a goroutine for listening on the channel instead and take a context as input to allow it to be closed when no longer in use.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestperformanceIssues about performance

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions