package
Version:
v3.0.0-...-eac99ac
Opens a new window with list of versions in this module.
Published: Oct 4, 2022
License: Apache-2.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 2
Opens a new window with list of known importers.
Documentation
¶
Notifier is a thread safe struct that can be used to send notification about
some event to multiple consumers.
NewNotifier returns new notifier
Notify closes the channel passed to consumers and creates new channel to used
for next notification.
func (n *Notifier) Receive() <-chan struct{}
Receive returns channel that can be used to wait for notification.
Consumers will be informed by closing the channel.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.