signal

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewContext

func NewContext(sig ...os.Signal) (ctx context.Context, cancel func())

NewContext 等待信号量

func NewTermContext

func NewTermContext() (ctx context.Context, cancel func())

NewTermContext 等待 Term 和 Int 信号量关闭

Types

type Context

type Context struct {
	Context context.Context
	Cancel  func()
}

Jump to

Keyboard shortcuts

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