Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Signal ¶
type Signal struct {
// contains filtered or unexported fields
}
Signal lets goroutines signal that some event has occurred. Other goroutines can wait for the signal.
func New ¶
func New(ch chan struct{}) *Signal
New wraps a channel and turns it into a signal for a one-time event.
Click to show internal directories.
Click to hide internal directories.