interrupt

package
v0.0.0-...-075157f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 18, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package interrupt handles common logic for handling interrupts.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Context

func Context() (context.Context, func())

Context returns a context that is canceled on SIGINT and SIGTERM.

func WrappedContext

func WrappedContext(ctx context.Context, signals ...os.Signal) (context.Context, func())

WrappedContext returns a new context wrapping the provided context and canceling it on the provided signals.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL