Documentation ¶
Overview ¶
Package ctrlc provides an easy way of having a task that is context-aware and that also deals with interrupt and term signals.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Default = New()
Default ctrlc instance
Functions ¶
This section is empty.
Types ¶
type Ctrlc ¶
type Ctrlc struct {
// contains filtered or unexported fields
}
Ctrlc is the task ctrlc
type ErrorCtrlC ¶ added in v1.2.0
type ErrorCtrlC struct {
// contains filtered or unexported fields
}
ErrorCtrlC happens when ctrlc gets a signal.
func (ErrorCtrlC) Error ¶ added in v1.2.0
func (e ErrorCtrlC) Error() string
Click to show internal directories.
Click to hide internal directories.