signalutil

package
v2.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: Apache-2.0 Imports: 12 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cancel

func Cancel()

func Ctx added in v2.0.11

func Ctx() context.Context

func Done

func Done() <-chan struct{}

Done must be called last

func Signal

func Signal() os.Signal

Types

type Context

type Context struct {
	// contains filtered or unexported fields
}

func Defer added in v2.0.7

func Defer(fn func()) *Context

func NewContext

func NewContext(ctx ...context.Context) *Context

func (*Context) Cancel

func (c *Context) Cancel()

func (*Context) Ctx added in v2.0.11

func (c *Context) Ctx() context.Context

func (*Context) Defer added in v2.0.7

func (c *Context) Defer(fn func()) *Context

func (*Context) Done

func (c *Context) Done() <-chan struct{}

func (*Context) Signal

func (c *Context) Signal() os.Signal

Jump to

Keyboard shortcuts

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