Documentation
¶
Overview ¶
Package signal provides mechanism for notifying multiple listeners when something happened.
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
}
A Signal is used to let multiple listeners know when something happened.
func (*Signal) Bind ¶
Bind creates a new listening channel bound to the signal. The channel used has a size of 1 and any given broadcast will signal at least one event, but may signal more than one.
Click to show internal directories.
Click to hide internal directories.