bus

package
v0.0.238 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: MIT Imports: 5 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 Next

func Next[T Event](input 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