signal

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2017 License: Apache-2.0 Imports: 4 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cancellable

type Cancellable struct {
	Exit          bool
	IgnoreRunners bool
	// contains filtered or unexported fields
}

Cancellable is a cancellable process triggered via signal. It will cascade through the context's cancel functions destroying each build process as a result.

func NewCancellable

func NewCancellable() *Cancellable

NewCancellable creates a cancellable process

func (*Cancellable) AddFunc

func (c *Cancellable) AddFunc(f context.CancelFunc)

AddFunc adds a cancel func to the list.

func (*Cancellable) AddRunner

func (c *Cancellable) AddRunner(run chan struct{})

AddRunner adds a chan struct{} to the list of runners. See BuildConfig for more.

func (*Cancellable) SignalHandler

func (c *Cancellable) SignalHandler(signals chan os.Signal)

SignalHandler is the signal handler that will be used throughout box to cancel things.

Jump to

Keyboard shortcuts

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