bus

package
v0.0.486 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Listen

func Listen[T Event](ctx context.Context, example T) <-chan T

func Publish

func Publish[T Event](event T)

func Subscribe

func Subscribe[T Event](ctx context.Context, fn func(T))

Types

type Event

type Event any

Jump to

Keyboard shortcuts

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