Documentation ¶
Overview ¶
Package runner provide support for writing tasks that must complete within a certain duration or they must be killed. It also provides support for notifying the task the shutdown using a <control> C.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrTimeout = errors.New("Timeout") ErrSignaled = errors.New("Signaled") )
Error variables for the different states.
Functions ¶
This section is empty.
Types ¶
type Jobber ¶
Jobber defines an interface for providing the implementation details for processing a user job.
type Runner ¶
type Runner struct {
// contains filtered or unexported fields
}
Runner maintains state for the running process.
func (*Runner) CheckShutdown ¶
CheckShutdown can be used to check if a shutdown request has been issued.
Click to show internal directories.
Click to hide internal directories.