Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cancellable ¶
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.
Click to show internal directories.
Click to hide internal directories.