Help us shape the future of Go! Take the 2026 Go Developer Survey

signal

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2018 License: MIT Imports: 4 Imported by: 77

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