Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultMemProfileRate = 4096
DefaultMemProfileRate is the default memory profiling rate. See also http://golang.org/pkg/runtime/#pkg-variables
Variables ¶
This section is empty.
Functions ¶
func AddShutdownListener ¶
func AddShutdownListener(fn func()) (waitForCalled func())
AddShutdownListener adds fn as a shutdown listener. The returned func can be used to wait for fn getting called.
func AddWrapUpListener ¶
func AddWrapUpListener(fn func()) (waitForCalled func())
AddWrapUpListener adds fn as a wrap up listener. The returned func can be used to wait for fn getting called.
func Done ¶
func Done() <-chan struct{}
Done returns the channel that notifies the process quitting.
func SetDefaultOutputDir ¶
func SetTimeToForceQuit ¶
SetTimeToForceQuit sets the waiting time before force quitting.
Types ¶
Click to show internal directories.
Click to hide internal directories.