notify

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: MIT Imports: 0 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 {
	// contains filtered or unexported fields
}

Notifier allows one goroutine to send a notification to one or more other goroutines.

func New

func New() *Notifier

func (*Notifier) Close

func (notifier *Notifier) Close(id string)

func (*Notifier) CloseAll

func (notifier *Notifier) CloseAll()

func (*Notifier) Get

func (notifier *Notifier) Get(id string) chan struct{}

func (*Notifier) Notify

func (notifier *Notifier) Notify()

func (*Notifier) Register

func (notifier *Notifier) Register(id string)

Jump to

Keyboard shortcuts

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