cos

package
v0.0.0-...-9302bd7 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AfterSignal

func AfterSignal(d time.Duration) <-chan struct{}

AfterSignal returns a channel which will be closed after the given duration or until a SIGHUP is received

func GoStats

func GoStats()

GoStats prints statistics to stdout on SIGUSR2 (posix-only)

func InterruptContext

func InterruptContext() context.Context

InterruptContext returns a context which is cancelled on OS Interrupt

func SleepSignal

func SleepSignal(d time.Duration)

SleepSignal sleeps for the given duration, or until a SIGHUP is received

Types

This section is empty.

Jump to

Keyboard shortcuts

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