events

package
v1.2.10 Latest Latest
Warning

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

Go to latest
Published: May 11, 2026 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 TypedBus

type TypedBus[T any] struct {
	// contains filtered or unexported fields
}

TypedBus is a lightweight generic pub/sub bus for internal architecture events.

func NewTypedBus

func NewTypedBus[T any]() *TypedBus[T]

func (*TypedBus[T]) Publish

func (b *TypedBus[T]) Publish(v T)

func (*TypedBus[T]) Subscribe

func (b *TypedBus[T]) Subscribe(buffer int) <-chan T

Jump to

Keyboard shortcuts

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