Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Death ¶
type Death struct {
// contains filtered or unexported fields
}
Death manages the death of your application.
func (*Death) FallOnSword ¶
func (d *Death) FallOnSword()
FallOnSword manually initiates the death process.
func (*Death) SetTimeout ¶
SetTimeout Overrides the time death is willing to wait for a objects to be closed.
func (*Death) WaitForDeath ¶
WaitForDeath wait for signal and then kill all items that need to die.
func (*Death) WaitForDeathWithFunc ¶
func (d *Death) WaitForDeathWithFunc(f func())
WaitForDeathWithFunc allows you to have a single function get called when it's time to kill your application.
Click to show internal directories.
Click to hide internal directories.