Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Stopper ¶
type Stopper struct {
// contains filtered or unexported fields
}
Stopper eases the graceful termination of a group of goroutines
func (*Stopper) Chan ¶
func (s *Stopper) Chan() chan struct{}
Chan returns the channel on which goroutines could listen to determine if they should stop. The channel is closed when Stop() is called.
Click to show internal directories.
Click to hide internal directories.