Documentation ¶
Overview ¶
Example is provided with help by Gabriel Aszalos. Package runner manages the running and lifetime of a process.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInterrupt = errors.New("received interrupt")
ErrInterrupt is returned when an event from the OS is received.
View Source
var ErrTimeout = errors.New("received timeout")
ErrTimeout is returned when a value is received on the timeout channel.
Functions ¶
This section is empty.
Types ¶
Directories ¶
Path | Synopsis |
---|---|
This sample program demonstrates how to use a channel to monitor the amount of time the program is running and terminate the program if it runs too long.
|
This sample program demonstrates how to use a channel to monitor the amount of time the program is running and terminate the program if it runs too long. |
Click to show internal directories.
Click to hide internal directories.