signal

package module
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2023 License: MIT Imports: 4 Imported by: 1

Documentation

Overview

Package signal implements Context os/signal

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithContext

func WithContext(ctx context.Context) context.Context

WithContext returns a copy of parent context whose Done channel is closed when an os interrupt signal is received.

func WithContextFunc

func WithContextFunc(ctx context.Context, f func()) context.Context

WithContextFunc returns a copy of parent context that is cancelled when an os interrupt signal is received. The callback function f is invoked before cancellation.

Types

This section is empty.

Jump to

Keyboard shortcuts

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