Documentation ¶ Index ¶ func WithInterrupt(ctx context.Context, log hclog.Logger) (context.Context, func()) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func WithInterrupt ¶ func WithInterrupt(ctx context.Context, log hclog.Logger) (context.Context, func()) WithInterrupt returns a Context that is done when an interrupt signal is received. It also returns a closer function that should be deferred for proper cleanup. Types ¶ This section is empty. Source Files ¶ View all Source files signalcontext.go Click to show internal directories. Click to hide internal directories.