event

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Emitter

type Emitter[Topic, Msg any] interface {
	io.Closer

	Ready() bool
	Publish(topic Topic, msg Msg)
	Subscribe(topic Topic, ch chan Msg) Subscription
	Unsubscribe(topic Topic, sub Subscription)
}

func NewEmitter

func NewEmitter[Topic comparable, Msg any]() Emitter[Topic, Msg]

type Subscription

type Subscription uuid.UUID

Jump to

Keyboard shortcuts

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