observer

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Observer

type Observer[T any] interface {
	Publisher[T]
	Subscriber[T]
}

func New

func New[T any]() Observer[T]

type Publisher

type Publisher[T any] interface {
	Publish(value T)
}

type Subscriber

type Subscriber[T any] interface {
	Subscribe() <-chan T
}

Jump to

Keyboard shortcuts

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