package
Version:
v0.6.3
Opens a new window with list of versions in this module.
Published: Apr 3, 2019
License: Apache-2.0
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Tomb is used to control the lifecycle of a goroutine.
NewTomb creates a new tomb.
Done is used by the goroutine to inform that it has stopped.
Stop is used to stop the goroutine outside.
func (t *Tomb) Stopping() <-chan struct{}
Stopping is used by the goroutine to tell whether it should stop.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.