mainctx

package
v0.3.2-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get() context.Context

Get returns a context that is aware of the interruption/termination signals received by the process. It is intended for graceful exits.

func GetForceKillCtx

func GetForceKillCtx() context.Context

GetForceKillCtx returns the context that is aware of the interruption/termination signals received by the process. It is intended for force kills.

func IsExiting

func IsExiting() bool

IsExiting returns true if the process has received an exit signal.

Types

This section is empty.

Jump to

Keyboard shortcuts

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