context

package
v0.0.0-...-22f70c5 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2024 License: GPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SigtermCacellationContext

func SigtermCacellationContext(ctx context.Context, onCancel func()) context.Context

SigtermCacellationContext returns a new context that is canceled when an interrupt signal (SIGTERM or SIGINT) is received. Additionaly invokes the provided onCancel function before canceling the context.

Types

This section is empty.

Jump to

Keyboard shortcuts

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