updatenotifier

package
v0.28.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 3, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Notifier

type Notifier struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func (*Notifier) Notify

func (n *Notifier) Notify()

Notify schedules a update to subscribers in the next cycle

func (*Notifier) Subscribe

func (n *Notifier) Subscribe(s func())

Subscribe adds a subscriber to the list of interested parties

func (*Notifier) Update

func (n *Notifier) Update(ctx context.Context, wg *sync.WaitGroup)

Update starts the process of notifying subscribers

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL