Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConsSync ¶
type ConsSync struct {
// contains filtered or unexported fields
}
ConsSync is a synchronization handle owned by consumers that is used to shutdown goroutine producers.
func NewConsSync ¶
func NewConsSync() *ConsSync
NewConsSync returns an initialized consumer shutdown handle.
type ProdSync ¶
type ProdSync struct { SignalChan <-chan struct{} // Channel that will be closed to signal that shutdown should be performed. // contains filtered or unexported fields }
ProdSync is a synchronization handle used by producers to be notified when to perform shutdown and to signal that shutdown has been performed.
Click to show internal directories.
Click to hide internal directories.