cos

package
v1.10.1 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2024 License: MIT Imports: 8 Imported by: 23

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