Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultEqual ¶ added in v0.12.1
func DefaultEqual[T comparable](new T, old T) bool
func NeverEqual ¶ added in v0.12.1
Types ¶
type Watcher ¶
type Watcher[T any] interface { // Cancel is called when the watcher stops because of context cancellation or // an explicit cancel call. Cancel() // Watch receives the initial value synchronously and later updates // asynchronously. Returning true stops the watcher. Watch(ctx context.Context, value T) bool }
Watcher receives low-level lifecycle callbacks for a Beamer.
Click to show internal directories.
Click to hide internal directories.