package
Version:
v0.6.0
Opens a new window with list of versions in this module.
Published: May 9, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package watcher provides a watcher to watch the epoch.
Channel is a channel of epoch watchers.
Add adds a epoch watcher.
It returns nil if the channel is closed.
Epoch is a epoch watcher.
It will be notified when the epoch is reached.
func (e *Epoch) Watch() <-chan struct{}
Watch returns a channel that will be notified when the epoch is reached.
Epochs is a list of epoch watchers.
Add adds a epoch watcher.
Notify notifies all epoch watchers that the epoch is reached.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.